Skip to content

Commit 16b0b3e

Browse files
committed
use drop_back
1 parent 7f45ef6 commit 16b0b3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ struct RuntimeLibcallsInfo {
8181
return LibcallCallingConvs[Call];
8282
}
8383

84-
ArrayRef<const char *> getLibcallNames() const { return LibcallRoutineNames; }
84+
ArrayRef<const char *> getLibcallNames() const {
85+
// Trim UNKNOWN_LIBCALL from the end
86+
return ArrayRef(LibcallRoutineNames).drop_back();
87+
}
8588

8689
private:
8790
/// Stores the name each libcall.

0 commit comments

Comments
 (0)