Skip to content

Commit bf8a22d

Browse files
sgundapaarsenm
andauthored
Update llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 13a43bd commit bf8a22d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,9 @@ static Value *calculateVectorIndex(
394394
auto I = GEPIdx.find(GEP);
395395
assert(I != GEPIdx.end() && "Must have entry for GEP!");
396396

397-
if (Value *IndexValue = I->second)
397+
Value *IndexValue = I->second;
398+
assert(IndexValue && "index value missing from GEP index map");
398399
return IndexValue;
399-
400-
llvm_unreachable(
401-
"Index value is not present in Cached GEPs! This indicates a "
402-
"bug in the pass that populates GEPIdx.");
403400
}
404401

405402
static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca,

0 commit comments

Comments
 (0)