We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd49ec commit dff5c30Copy full SHA for dff5c30
llvm/lib/IR/RuntimeLibcalls.cpp
@@ -93,10 +93,11 @@ iota_range<RTLIB::LibcallImpl>
93
RuntimeLibcallsInfo::libcallImplNameHit(uint16_t NameOffsetEntry,
94
uint16_t StrOffset) {
95
int NumAliases = 1;
96
- for (int E = std::size(RuntimeLibcallNameOffsetTable);
97
- NameOffsetEntry + NumAliases != E &&
98
- RuntimeLibcallNameOffsetTable[NameOffsetEntry + NumAliases] == StrOffset;
99
- ++NumAliases) {
+ for (uint16_t Entry : ArrayRef(RuntimeLibcallNameOffsetTable)
+ .drop_front(NameOffsetEntry + 1)) {
+ if (Entry != StrOffset)
+ break;
100
+ ++NumAliases;
101
}
102
103
RTLIB::LibcallImpl ImplStart = static_cast<RTLIB::LibcallImpl>(
0 commit comments