aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-06 18:27:36 -0800
committerKazu Hirata <kazu@google.com>2021-01-06 18:27:36 -0800
commitcfeecdf7b6df9cd89488948b440f8deeb458104c (patch)
tree1ec05d9a86a1305a0644ddcfa01a797adb99c77d /llvm/lib/IR/Constants.cpp
parent9b228f107d43341ef73af92865f73a9a076c5a76 (diff)
downloadllvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.zip
llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.tar.gz
llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.tar.bz2
[llvm] Use llvm::all_of (NFC)
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index ba5e1ca..6fd205c 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -1678,7 +1678,7 @@ Constant *Constant::getSplatValue(bool AllowUndefs) const {
ConstantInt *Index = dyn_cast<ConstantInt>(IElt->getOperand(2));
if (Index && Index->getValue() == 0 &&
- std::all_of(Mask.begin(), Mask.end(), [](int I) { return I == 0; }))
+ llvm::all_of(Mask, [](int I) { return I == 0; }))
return SplatVal;
}
}