mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
[opaque pointer type] More GEP IRBuilder API migrations...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3884,8 +3884,8 @@ Value *SwitchLookupTable::BuildLookup(Value *Index, IRBuilder<> &Builder) {
|
||||
"switch.tableidx.zext");
|
||||
|
||||
Value *GEPIndices[] = { Builder.getInt32(0), Index };
|
||||
Value *GEP = Builder.CreateInBoundsGEP(Array, GEPIndices,
|
||||
"switch.gep");
|
||||
Value *GEP = Builder.CreateInBoundsGEP(Array->getValueType(), Array,
|
||||
GEPIndices, "switch.gep");
|
||||
return Builder.CreateLoad(GEP, "switch.load");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user