diff options
Diffstat (limited to 'lib/Driver/Compilation.cpp')
-rw-r--r-- | lib/Driver/Compilation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp index 48796afd82..a2fc9212a5 100644 --- a/lib/Driver/Compilation.cpp +++ b/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. |