aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint
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
commitf2519d6193d736ee7f2b9cc24e0143cfa933f79e (patch)
tree13cacd7f4cf35222c87f5021354fd8944756b1e0 /tools/bugpoint
parent33b6450f08ca9ef6306adbd8cdb24145bf9a2202 (diff)
downloadexternal_llvm-f2519d6193d736ee7f2b9cc24e0143cfa933f79e.zip
external_llvm-f2519d6193d736ee7f2b9cc24e0143cfa933f79e.tar.gz
external_llvm-f2519d6193d736ee7f2b9cc24e0143cfa933f79e.tar.bz2
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')
-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 e1aeaf8..a591417 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.