commit | 88c9eae831fae2977a61ab252eb565cc0c675ab4 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Fri Mar 13 17:24:34 2009 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Fri Mar 13 17:24:34 2009 +0000 |
tree | cb6413fad119b65bbd552978d8330b0b64f166e6 | |
parent | 9dc28b8c92d31dead337d14fc457fa17d6ea4b7f [diff] [blame] |
Driver: Return 0 from BuildCompilation on -ccc-print-phases, -ccc-print-options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66907 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 645a3ff..fd0cc9c 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp
@@ -52,6 +52,8 @@ // If there were errors building the compilation, quit now. if (Diags.getNumErrors()) return 1; + if (!C.get()) + return 0; return C->Execute(); }