From 68c59184eef6d41e2d05fa925dca59ca84c7deda Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 5 Oct 2008 01:38:39 +0000 Subject: [PATCH] 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 --- Driver/clang.cpp | 6 +++--- 1 file 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) { -- 2.50.1