diff options
author | Kang Zhang <shkzhang@cn.ibm.com> | 2020-05-15 02:35:33 +0000 |
---|---|---|
committer | Kang Zhang <shkzhang@cn.ibm.com> | 2020-05-15 02:35:33 +0000 |
commit | aedb6615a8d08d7dfeba17bf22ff4c6fd104cadc (patch) | |
tree | 6623667cb41d5071cdeaea1312d191f23df82ad0 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | dad2e92eaf531500af5ab9ee3350e3e186944185 (diff) | |
download | llvm-aedb6615a8d08d7dfeba17bf22ff4c6fd104cadc.zip llvm-aedb6615a8d08d7dfeba17bf22ff4c6fd104cadc.tar.gz llvm-aedb6615a8d08d7dfeba17bf22ff4c6fd104cadc.tar.bz2 |
[MachineVerifier] Use the for_range loop to instead llvm::any_of
Summary:
In the patch D78849, it uses llvm::any_of to instead of for loop to
simplify the function addRequired().
It's obvious that above code is not a NFC conversion. Because any_of
will return if any addRequired(Reg) is true immediately, but we want
every element to call addRequired(Reg).
This patch uses for_range loop to fix above any_of bug.
Reviewed By: MaskRay, nickdesaulniers
Differential Revision: https://reviews.llvm.org/D79872
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions