summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-25 09:48:08 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-25 09:48:08 +0000
commitd1b7849d49d968a6f5398eb5534a763d42be97b8 (patch)
tree80773d650d8c3049e3a9fdc3e21597e7853925b7 /llvm/unittests
parent1dba445e433aea5bb188e424650c912f620ad341 (diff)
downloadbcm5719-llvm-d1b7849d49d968a6f5398eb5534a763d42be97b8.tar.gz
bcm5719-llvm-d1b7849d49d968a6f5398eb5534a763d42be97b8.zip
Convert GetElementPtrInst to use ArrayRef.
llvm-svn: 135904
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/Transforms/Utils/Cloning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp
index 1ce549d1ebf..1b858695b1d 100644
--- a/llvm/unittests/Transforms/Utils/Cloning.cpp
+++ b/llvm/unittests/Transforms/Utils/Cloning.cpp
@@ -124,7 +124,7 @@ TEST_F(CloneInstruction, Inbounds) {
Constant *Z = Constant::getNullValue(Type::getInt32Ty(context));
std::vector<Value *> ops;
ops.push_back(Z);
- GetElementPtrInst *GEP = GetElementPtrInst::Create(V, ops.begin(), ops.end());
+ GetElementPtrInst *GEP = GetElementPtrInst::Create(V, ops);
EXPECT_FALSE(this->clone(GEP)->isInBounds());
GEP->setIsInBounds();
OpenPOWER on IntegriCloud