Skip to content

Commit 40e1f7d

Browse files
authored
[RISCV] Use llvm::is_contained. NFC (#142239)
1 parent 74420ce commit 40e1f7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21864,8 +21864,7 @@ SDValue RISCVTargetLowering::LowerFormalArguments(
2186421864
"SiFive-CLIC-stack-swap",
2186521865
"SiFive-CLIC-preemptible-stack-swap",
2186621866
};
21867-
if (llvm::find(SupportedInterruptKinds, Kind) ==
21868-
std::end(SupportedInterruptKinds))
21867+
if (!llvm::is_contained(SupportedInterruptKinds, Kind))
2186921868
report_fatal_error(
2187021869
"Function interrupt attribute argument not supported!");
2187121870

0 commit comments

Comments
 (0)