summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-mca/Instruction.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/Instruction.h b/llvm/tools/llvm-mca/Instruction.h
index 33e867fedce..454992c4b9b 100644
--- a/llvm/tools/llvm-mca/Instruction.h
+++ b/llvm/tools/llvm-mca/Instruction.h
@@ -339,8 +339,9 @@ public:
int getCyclesLeft() const { return CyclesLeft; }
bool hasDependentUsers() const {
- return llvm::any_of(
- Defs, [](const UniqueDef &Def) { return Def->getNumUsers() > 0; });
+ return std::any_of(Defs.begin(), Defs.end(), [](const UniqueDef &Def) {
+ return Def->getNumUsers() > 0;
+ });
}
bool isDependencyBreaking() const { return IsDepBreaking; }
OpenPOWER on IntegriCloud