diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-22 08:16:57 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-22 08:16:57 +0000 |
commit | 0f6ac7cf7bc6a02c1a5c19d2c90ec0d1dd7786e7 (patch) | |
tree | d547274e12f5f7caf8be76102c4f1bfec3b3f16a /lib/CodeGen/CGExprAgg.cpp | |
parent | 7c634a04a23171cc2356e3129fb16b8e9da3bf00 (diff) |
Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to use
ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index a217337248..2579614809 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -676,7 +676,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) { llvm::Value *zero = llvm::ConstantInt::get(CGF.SizeTy, 0); llvm::Value *indices[] = { zero, zero }; llvm::Value *begin = - Builder.CreateInBoundsGEP(DestPtr, indices, indices+2, "arrayinit.begin"); + Builder.CreateInBoundsGEP(DestPtr, indices, "arrayinit.begin"); // Exception safety requires us to destroy all the // already-constructed members if an initializer throws. |