diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-07-17 05:09:29 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-07-17 05:09:29 +0000 |
commit | ed5bbe9020450b75cd3347b5ce29336deea4ecae (patch) | |
tree | afa44e18fb3638b00c4d41e455ebe9823d98a950 /clang/lib/Driver/Driver.cpp | |
parent | 78c0295fcf1dec5833e6fce58e9eb457f976fa3d (diff) | |
download | bcm5719-llvm-ed5bbe9020450b75cd3347b5ce29336deea4ecae.tar.gz bcm5719-llvm-ed5bbe9020450b75cd3347b5ce29336deea4ecae.zip |
[Win32] Rework crash-report since r145389.
- lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions.
- test/Driver/crash-report.c: Add REQUIRES:shell for now.
FIXME: setenv should work also on Lit.InternalShellRunner.
- test/Driver/crash-report.c: Remove XFAIL.
Thanks to Chad, To point out the issue.
llvm-svn: 160343
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index a2afb76fe55..7f6fcb1a5e8 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -582,14 +582,8 @@ int Driver::ExecuteCompilation(const Compilation &C, C.CleanupFileList(C.getResultFiles(), true); // Failure result files are valid unless we crashed. - if (Res < 0) { + if (Res < 0) C.CleanupFileList(C.getFailureResultFiles(), true); -#ifdef _WIN32 - // Exit status should not be negative on Win32, - // unless abnormal termination. - Res = 1; -#endif - } } // Print extra information about abnormal failures, if possible. |