[llvm-mca] use llvm::any_of instead of std::any_of. NFC

llvm-svn: 340863
This commit is contained in:
Andrea Di Biagio 2018-08-28 18:49:04 +00:00
parent 44a8a756e2
commit 88d99a09a2
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#ifndef LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
#define LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/MathExtras.h"
#ifndef NDEBUG
@ -339,7 +340,7 @@ public:
int getCyclesLeft() const { return CyclesLeft; }
bool hasDependentUsers() const {
return std::any_of(Defs.begin(), Defs.end(), [](const UniqueDef &Def) {
return llvm::any_of(Defs, [](const UniqueDef &Def) {
return Def->getNumUsers() > 0;
});
}