aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/Miscompilation.cpp2
-rw-r--r--tools/lli/lli.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 39f83d0..b3e6161 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -666,7 +666,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
Function *resolverFunc =
Safe->getOrInsertFunction("getPointerToNamedFunction",
PointerType::get(Type::SByteTy),
- PointerType::get(Type::SByteTy), 0);
+ PointerType::get(Type::SByteTy), (Type *)0);
// Use the function we just added to get addresses of functions we need.
for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) {
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index bd22b29..c1b7478 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -96,7 +96,8 @@ int main(int argc, char **argv, char * const *envp) {
// If the program didn't explicitly call exit, call exit now, for the program.
// This ensures that any atexit handlers get called correctly.
Function *Exit = MP->getModule()->getOrInsertFunction("exit", Type::VoidTy,
- Type::IntTy, 0);
+ Type::IntTy,
+ (Type *)0);
std::vector<GenericValue> Args;
GenericValue ResultGV;