diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-21 13:00:44 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-21 13:00:44 +0000 |
| commit | 5001f90b01684e0d5ae9fc8c7aa6aa4309eb9f51 (patch) | |
| tree | 673881b0bfa93a8b05d10987be22467a29f6fd67 | |
| parent | 5184995f9b7ff867dd458b638ccb1c5bc77239c1 (diff) | |
| download | bcm5719-llvm-5001f90b01684e0d5ae9fc8c7aa6aa4309eb9f51.tar.gz bcm5719-llvm-5001f90b01684e0d5ae9fc8c7aa6aa4309eb9f51.zip | |
[llvm-mca] Replace use of llvm::any_of with std::any_of.
This should unbreak the buildbots.
llvm-svn: 340274
| -rw-r--r-- | llvm/tools/llvm-mca/Instruction.h | 5 |
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; } |

