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 bb16958 commit 96c279fCopy full SHA for 96c279f
llvm/lib/IR/RuntimeLibcalls.cpp
@@ -66,10 +66,11 @@ iota_range<RTLIB::LibcallImpl>
66
RuntimeLibcallsInfo::libcallImplNameHit(uint16_t NameOffsetEntry,
67
uint16_t StrOffset) {
68
int NumAliases = 1;
69
- for (int E = std::size(RuntimeLibcallNameOffsetTable);
70
- NameOffsetEntry + NumAliases != E &&
71
- RuntimeLibcallNameOffsetTable[NameOffsetEntry + NumAliases] == StrOffset;
72
- ++NumAliases) {
+ for (uint16_t Entry : ArrayRef(RuntimeLibcallNameOffsetTable)
+ .drop_front(NameOffsetEntry + 1)) {
+ if (Entry != StrOffset)
+ break;
73
+ ++NumAliases;
74
}
75
76
RTLIB::LibcallImpl ImplStart = static_cast<RTLIB::LibcallImpl>(
0 commit comments