diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-05 01:38:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-05 01:38:39 +0000 |
commit | 68c59184eef6d41e2d05fa925dca59ca84c7deda (patch) | |
tree | e0d2f3b2067463208829ef71b2d6f072a3cd1dda /Driver/clang.cpp | |
parent | a6f6c71cf76d076eda7036261bca881108062eeb (diff) |
Allow -verify to be used with -rewrite-macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 4b0af8dac1..8e5bca22f8 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -1020,9 +1020,6 @@ static void ParseFile(Preprocessor &PP, MinimalAction *PA) { // Parsing the specified input file. P.ParseTranslationUnit(); delete PA; - - if (VerifyDiagnostics) - exit(CheckDiagnostics(PP)); } //===----------------------------------------------------------------------===// @@ -1157,6 +1154,9 @@ static void ProcessInputFile(Preprocessor &PP, PreprocessorFactory &PPF, exit(CheckASTConsumer(PP, Consumer.get())); ParseAST(PP, Consumer.get(), Stats); + } else { + if (VerifyDiagnostics) + exit(CheckDiagnostics(PP)); } if (Stats) { |