diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-07-21 14:31:17 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-07-21 14:31:17 +0000 |
| commit | ed8db7d9df395497d54ea9cecf1cecdad674cd7e (patch) | |
| tree | 4da14cc7a50cc83e03bd6353a059c10b5a719eee /llvm/lib/Target | |
| parent | 95f1ebd41b103eba1cb64305e9cc924527a8744f (diff) | |
| download | bcm5719-llvm-ed8db7d9df395497d54ea9cecf1cecdad674cd7e.tar.gz bcm5719-llvm-ed8db7d9df395497d54ea9cecf1cecdad674cd7e.zip | |
Convert ConstantExpr::getGetElementPtr and
ConstantExpr::getInBoundsGetElementPtr to use ArrayRef.
llvm-svn: 135673
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMGlobalMerge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMGlobalMerge.cpp b/llvm/lib/Target/ARM/ARMGlobalMerge.cpp index e4b732ca1e4..5f863ea241c 100644 --- a/llvm/lib/Target/ARM/ARMGlobalMerge.cpp +++ b/llvm/lib/Target/ARM/ARMGlobalMerge.cpp @@ -150,7 +150,7 @@ bool ARMGlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, ConstantInt::get(Int32Ty, 0), ConstantInt::get(Int32Ty, k-i) }; - Constant *GEP = ConstantExpr::getInBoundsGetElementPtr(MergedGV, Idx, 2); + Constant *GEP = ConstantExpr::getInBoundsGetElementPtr(MergedGV, Idx); Globals[k]->replaceAllUsesWith(GEP); Globals[k]->eraseFromParent(); } |

