summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Transforms/Utils/Cloning.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-10-06 15:40:36 +0000
committerDuncan Sands <baldrick@free.fr>2009-10-06 15:40:36 +0000
commit9ed7b16bf33d191c4f58f41b128aded092cc4ea0 (patch)
tree5a1196d794ebba33ff7470d5b0b8abfa948a0e04 /llvm/unittests/Transforms/Utils/Cloning.cpp
parentfa21fe7c3d40396ab5c37e087e8b8d02167aee99 (diff)
downloadbcm5719-llvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.tar.gz
bcm5719-llvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.zip
Introduce and use convenience methods for getting pointer types
where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
Diffstat (limited to 'llvm/unittests/Transforms/Utils/Cloning.cpp')
-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 7c93f6f5834..b14114ab691 100644
--- a/llvm/unittests/Transforms/Utils/Cloning.cpp
+++ b/llvm/unittests/Transforms/Utils/Cloning.cpp
@@ -64,7 +64,7 @@ TEST(CloneInstruction, OverflowBits) {
TEST(CloneInstruction, Inbounds) {
LLVMContext context;
- Value *V = new Argument(Type::getInt32Ty(context)->getPointerTo());
+ Value *V = new Argument(Type::getInt32PtrTy(context));
Constant *Z = Constant::getNullValue(Type::getInt32Ty(context));
std::vector<Value *> ops;
ops.push_back(Z);
OpenPOWER on IntegriCloud