summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfb07b1)
raw | patch | inline | side by side (parent: bfb07b1)
author | Matt Arsenault <Matthew.Arsenault@amd.com> | |
Wed, 14 Aug 2013 00:24:05 +0000 (00:24 +0000) | ||
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | |
Wed, 14 Aug 2013 00:24:05 +0000 (00:24 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188337 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | patch | blob | history |
diff --git a/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
index e2d7966cb3ed9374250c807ad1f19d5205c2527e..0034ddf63a42709be968a7b88c2f66e6e18bdce6 100644 (file)
// Now that I is pointing to the first non-allocation-inst in the block,
// insert our getelementptr instruction...
//
- Value *NullIdx =Constant::getNullValue(Type::getInt32Ty(AI.getContext()));
- Value *Idx[2];
- Idx[0] = NullIdx;
- Idx[1] = NullIdx;
+ Value *NullIdx = Constant::getNullValue(Type::getInt32Ty(AI.getContext()));
+ Value *Idx[2] = { NullIdx, NullIdx };
Instruction *GEP =
- GetElementPtrInst::CreateInBounds(New, Idx, New->getName()+".sub");
+ GetElementPtrInst::CreateInBounds(New, Idx, New->getName() + ".sub");
InsertNewInstBefore(GEP, *It);
// Now make everything use the getelementptr instead of the original