Skip to content

Commit c51417d

Browse files
[RISCV] Use llvm::any_of (NFC) (#140398)
1 parent 7108dec commit c51417d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,7 @@ static bool analyzeCandidate(outliner::Candidate &C) {
33083308
// Filter out candidates where the X5 register (t0) can't be used to setup
33093309
// the function call.
33103310
const TargetRegisterInfo *TRI = C.getMF()->getSubtarget().getRegisterInfo();
3311-
if (std::any_of(C.begin(), C.end(), [TRI](const MachineInstr &MI) {
3311+
if (llvm::any_of(C, [TRI](const MachineInstr &MI) {
33123312
return isMIModifiesReg(MI, TRI, RISCV::X5);
33133313
}))
33143314
return true;

0 commit comments

Comments
 (0)