summaryrefslogtreecommitdiff
path: root/tools/bugpoint/Miscompilation.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
commitac53a0b272452013124bfc70480aea5e41b60f40 (patch)
tree13cacd7f4cf35222c87f5021354fd8944756b1e0 /tools/bugpoint/Miscompilation.cpp
parent6e214805b1163c0e3cd218963c9e66ea244956b2 (diff)
downloadllvm-ac53a0b272452013124bfc70480aea5e41b60f40.tar.gz
llvm-ac53a0b272452013124bfc70480aea5e41b60f40.tar.bz2
llvm-ac53a0b272452013124bfc70480aea5e41b60f40.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r--tools/bugpoint/Miscompilation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index e1aeaf8efe..a5914178f1 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -704,8 +704,8 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
// Prototype: void *getPointerToNamedFunction(const char* Name)
Constant *resolverFunc =
Safe->getOrInsertFunction("getPointerToNamedFunction",
- PointerType::getUnqual(Type::getInt8Ty(Safe->getContext())),
- PointerType::getUnqual(Type::getInt8Ty(Safe->getContext())),
+ Type::getInt8PtrTy(Safe->getContext()),
+ Type::getInt8PtrTy(Safe->getContext()),
(Type *)0);
// Use the function we just added to get addresses of functions we need.