summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-04-03 21:33:42 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-04-03 21:33:42 +0000
commitaa41cd57e0223306f146b421df1b88893a36bd81 (patch)
tree40bbe08a40b20ac5c95d35c7d0471588fac6a011 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent65fab6d89666e88ed1c9841164ca5b8b0653fec1 (diff)
downloadbcm5719-llvm-aa41cd57e0223306f146b421df1b88893a36bd81.tar.gz
bcm5719-llvm-aa41cd57e0223306f146b421df1b88893a36bd81.zip
[opaque pointer type] More GEP IRBuilder API migrations...
llvm-svn: 234058
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index c7c0ca6fc69..ef0c10f2d20 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -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");
}
}
OpenPOWER on IntegriCloud