diff options
Diffstat (limited to 'llvm/lib/Debugger/UnixLocalInferiorProcess.cpp')
| -rw-r--r-- | llvm/lib/Debugger/UnixLocalInferiorProcess.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp b/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp index 1731beaa039..6758e2de9d4 100644 --- a/llvm/lib/Debugger/UnixLocalInferiorProcess.cpp +++ b/llvm/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; |

