summaryrefslogtreecommitdiff
path: root/lib/Analysis/PHITransAddr.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 15:07:52 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 15:07:52 +0000
commitb9b54ebfed02f0654897d37e8a4448d3f8087558 (patch)
tree8bdb4816b8fc391e63610f245c48ff9baa93459f /lib/Analysis/PHITransAddr.cpp
parentca12a2139e7ed8b5f30df9927494dd7aae929a7c (diff)
downloadllvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.gz
llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.bz2
llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.xz
Convert SimplifyGEPInst to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PHITransAddr.cpp')
-rw-r--r--lib/Analysis/PHITransAddr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/PHITransAddr.cpp b/lib/Analysis/PHITransAddr.cpp
index 70dcd0df24..05476115bc 100644
--- a/lib/Analysis/PHITransAddr.cpp
+++ b/lib/Analysis/PHITransAddr.cpp
@@ -228,7 +228,7 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
return GEP;
// Simplify the GEP to handle 'gep x, 0' -> x etc.
- if (Value *V = SimplifyGEPInst(&GEPOps[0], GEPOps.size(), TD, DT)) {
+ if (Value *V = SimplifyGEPInst(GEPOps, TD, DT)) {
for (unsigned i = 0, e = GEPOps.size(); i != e; ++i)
RemoveInstInputs(GEPOps[i], InstInputs);