diff options
Diffstat (limited to 'clang/Driver/DiagChecker.cpp')
| -rw-r--r-- | clang/Driver/DiagChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Driver/DiagChecker.cpp b/clang/Driver/DiagChecker.cpp index 279b55b7731..1e327ce363d 100644 --- a/clang/Driver/DiagChecker.cpp +++ b/clang/Driver/DiagChecker.cpp @@ -216,13 +216,13 @@ static bool CheckResults(Preprocessor &PP, /// CheckDiagnostics - Implement the -parse-ast-check diagnostic verifier. bool clang::CheckDiagnostics(Preprocessor &PP, unsigned MainFileID) { + // Parse the specified input file. + BuildASTs(PP, MainFileID, false); + // Gather the set of expected diagnostics. DiagList ExpectedErrors, ExpectedWarnings; FindExpectedDiags(PP, MainFileID, ExpectedErrors, ExpectedWarnings); - // Parse the specified input file. - BuildASTs(PP, MainFileID, false); - // Check that the expected diagnostics occurred. return CheckResults(PP, ExpectedErrors, ExpectedWarnings); } |

