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 f7ff3cd commit edbebdaCopy full SHA for edbebda
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -2537,6 +2537,7 @@ void SITargetLowering::allocatePreloadKernArgSGPRs(
2537
2538
// Arg is preloaded into the previous SGPR.
2539
if (ArgLoc.getLocVT().getStoreSize() < 4 && Alignment < 4) {
2540
+ assert(InIdx >= 1 && "No previous SGPR");
2541
Info.getArgInfo().PreloadKernArgs[InIdx].Regs.push_back(
2542
Info.getArgInfo().PreloadKernArgs[InIdx - 1].Regs[0]);
2543
continue;
0 commit comments