diff options
author | Duncan Sands <baldrick@free.fr> | 2009-10-06 15:40:36 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-10-06 15:40:36 +0000 |
commit | ac53a0b272452013124bfc70480aea5e41b60f40 (patch) | |
tree | 13cacd7f4cf35222c87f5021354fd8944756b1e0 /tools/bugpoint | |
parent | 6e214805b1163c0e3cd218963c9e66ea244956b2 (diff) | |
download | external_llvm-ac53a0b272452013124bfc70480aea5e41b60f40.zip external_llvm-ac53a0b272452013124bfc70480aea5e41b60f40.tar.gz external_llvm-ac53a0b272452013124bfc70480aea5e41b60f40.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.cpp | 4 |
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. |