[opaque pointer type] more GEP API migrations
llvm-svn: 234097
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user