diff options
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
-rw-r--r-- | clang/lib/Driver/Compilation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index 48796afd827..a2fc9212a51 100644 --- a/clang/lib/Driver/Compilation.cpp +++ b/clang/lib/Driver/Compilation.cpp @@ -160,6 +160,10 @@ int Compilation::Execute() const { return 0; } + // If there were errors building the compilation, quit now. + if (getDriver().getDiags().getNumErrors()) + return 1; + int Res = ExecuteJob(Jobs); // Remove temp files. |