diff options
Diffstat (limited to 'lib/Debugger')
-rw-r--r-- | lib/Debugger/UnixLocalInferiorProcess.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Debugger/UnixLocalInferiorProcess.cpp b/lib/Debugger/UnixLocalInferiorProcess.cpp index 1731bea..6758e2d 100644 --- a/lib/Debugger/UnixLocalInferiorProcess.cpp +++ b/lib/Debugger/UnixLocalInferiorProcess.cpp @@ -924,7 +924,8 @@ static void runChild(Module *M, const std::vector<std::string> &Arguments, // 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 = M->getOrInsertFunction("exit", Type::VoidTy, Type::IntTy, 0); + Function *Exit = M->getOrInsertFunction("exit", Type::VoidTy, Type::IntTy, + (Type *)0); std::vector<GenericValue> Args; GenericValue ResultGV; |