summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-04-04 15:12:29 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-04-04 15:12:29 +0000
commitfb901c7abfd231c80159240d2ce71f68e46aae8b (patch)
tree88801d4bc9da8f30ef6a2c87f1dc38397e06ff75 /clang/lib/CodeGen/CodeGenFunction.cpp
parentd5ad56fbe4fa22e5e72e7222b3eaf331485b5eff (diff)
downloadbcm5719-llvm-fb901c7abfd231c80159240d2ce71f68e46aae8b.tar.gz
bcm5719-llvm-fb901c7abfd231c80159240d2ce71f68e46aae8b.zip
[opaque pointer type] more GEP API migrations
llvm-svn: 234097
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 9e80f0a0a1f..5e0f8c02831 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -1229,7 +1229,8 @@ static void emitNonZeroVLAInit(CodeGenFunction &CGF, QualType baseType,
/*volatile*/ false);
// Go to the next element.
- llvm::Value *next = Builder.CreateConstInBoundsGEP1_32(cur, 1, "vla.next");
+ llvm::Value *next = Builder.CreateConstInBoundsGEP1_32(Builder.getInt8Ty(),
+ cur, 1, "vla.next");
// Leave if that's the end of the VLA.
llvm::Value *done = Builder.CreateICmpEQ(next, end, "vla-init.isdone");
OpenPOWER on IntegriCloud