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/IR/Constants.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/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 2 |
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; } } |