diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-14 21:40:10 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-14 21:40:10 +0000 |
commit | b3a3906ad75835bb7d851df626283164c19c4b14 (patch) | |
tree | f9e9fb5cd9365f90e9107dd6f894b9e57e5496f6 /llvm/unittests/Transforms/Utils/Cloning.cpp | |
parent | c95c3aee152715862c9565de704c7240fa1b235a (diff) | |
download | bcm5719-llvm-b3a3906ad75835bb7d851df626283164c19c4b14.tar.gz bcm5719-llvm-b3a3906ad75835bb7d851df626283164c19c4b14.zip |
[opaque pointer type] gep API migration
This concludes the GetElementPtrInst::Create migration, thus marking the
beginning of the IRBuilder::CreateGEP* migration to come.
llvm-svn: 232280
Diffstat (limited to 'llvm/unittests/Transforms/Utils/Cloning.cpp')
-rw-r--r-- | llvm/unittests/Transforms/Utils/Cloning.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp index 1d22d5b15c9..8374099680e 100644 --- a/llvm/unittests/Transforms/Utils/Cloning.cpp +++ b/llvm/unittests/Transforms/Utils/Cloning.cpp @@ -135,7 +135,8 @@ 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); + GetElementPtrInst *GEP = + GetElementPtrInst::Create(Type::getInt32Ty(context), V, ops); EXPECT_FALSE(this->clone(GEP)->isInBounds()); GEP->setIsInBounds(); |