Allow -parse-noop -verify options to be used together.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52249 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 6f7e1a2..731c1a8 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1134,6 +1134,9 @@
// Parsing the specified input file.
P.ParseTranslationUnit();
delete PA;
+
+ if (VerifyDiagnostics)
+ exit(CheckDiagnostics(PP));
}
//===----------------------------------------------------------------------===//