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
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 4b0af8d..8e5bca2 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1020,9 +1020,6 @@
// Parsing the specified input file.
P.ParseTranslationUnit();
delete PA;
-
- if (VerifyDiagnostics)
- exit(CheckDiagnostics(PP));
}
//===----------------------------------------------------------------------===//
@@ -1157,6 +1154,9 @@
exit(CheckASTConsumer(PP, Consumer.get()));
ParseAST(PP, Consumer.get(), Stats);
+ } else {
+ if (VerifyDiagnostics)
+ exit(CheckDiagnostics(PP));
}
if (Stats) {