aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-10 09:24:53 -0800
committerKazu Hirata <kazu@google.com>2021-01-10 09:24:53 -0800
commit9850d3b10a10aff00d31adf0633a4ba2b840f824 (patch)
treec375eedcdcce00db784ecb2e5272dc186b9b655c /llvm/lib/CodeGen/SwiftErrorValueTracking.cpp
parent1ecae1e62ad016f0c12c204ce312fdfd653ca8cf (diff)
downloadllvm-9850d3b10a10aff00d31adf0633a4ba2b840f824.zip
llvm-9850d3b10a10aff00d31adf0633a4ba2b840f824.tar.gz
llvm-9850d3b10a10aff00d31adf0633a4ba2b840f824.tar.bz2
[CodeGen, DebugInfo] Use llvm::find_if (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/SwiftErrorValueTracking.cpp')
-rw-r--r--llvm/lib/CodeGen/SwiftErrorValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp
index dd0b9d4..4408011 100644
--- a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp
+++ b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp
@@ -202,8 +202,8 @@ void SwiftErrorValueTracking::propagateVRegs() {
// downward defs.
bool needPHI =
VRegs.size() >= 1 &&
- std::find_if(
- VRegs.begin(), VRegs.end(),
+ llvm::find_if(
+ VRegs,
[&](const std::pair<const MachineBasicBlock *, Register> &V)
-> bool { return V.second != VRegs[0].second; }) !=
VRegs.end();