diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:04 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:11 +0000 |
commit | e3b557809604d036af6e00c60f012c2025b59a5e (patch) | |
tree | 8a11ba2269a3b669601e2fd41145b174008f4da8 /llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | |
parent | 08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff) |
Diffstat (limited to 'llvm/lib/CodeGen/SwiftErrorValueTracking.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp index 2282d53e8ffd..83a7063de112 100644 --- a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp +++ b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp @@ -202,11 +202,10 @@ void SwiftErrorValueTracking::propagateVRegs() { // downward defs. bool needPHI = VRegs.size() >= 1 && - llvm::find_if( + llvm::any_of( VRegs, [&](const std::pair<const MachineBasicBlock *, Register> &V) - -> bool { return V.second != VRegs[0].second; }) != - VRegs.end(); + -> bool { return V.second != VRegs[0].second; }); // If there is no upwards exposed used and we don't need a phi just // forward the swifterror vreg from the predecessor(s). |