1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[llvm-mca] Replace use of llvm::any_of with std::any_of.

This should unbreak the buildbots.

llvm-svn: 340274
This commit is contained in:
Andrea Di Biagio 2018-08-21 13:00:44 +00:00
parent ab0b923dab
commit 1ef6559797

View File

@ -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; }