[opaque pointer type] more GEP API migrations

llvm-svn: 234097
This commit is contained in:
David Blaikie
2015-04-04 15:12:29 +00:00
parent d5ad56fbe4
commit fb901c7abf
7 changed files with 34 additions and 31 deletions

View File

@@ -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");