diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-06 18:27:36 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-06 18:27:36 -0800 |
commit | cfeecdf7b6df9cd89488948b440f8deeb458104c (patch) | |
tree | 1ec05d9a86a1305a0644ddcfa01a797adb99c77d /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 9b228f107d43341ef73af92865f73a9a076c5a76 (diff) | |
download | llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.zip llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.tar.gz llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.tar.bz2 |
[llvm] Use llvm::all_of (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 71dbe8d..c621cef 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2230,8 +2230,7 @@ bool CodeGenPrepare::dupRetToEnableTailCallOpts(BasicBlock *BB, bool &ModifiedDT EVI = dyn_cast<ExtractValueInst>(V); if (EVI) { V = EVI->getOperand(0); - if (!std::all_of(EVI->idx_begin(), EVI->idx_end(), - [](unsigned idx) { return idx == 0; })) + if (!llvm::all_of(EVI->indices(), [](unsigned idx) { return idx == 0; })) return false; } |