diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 5ee53a93732bb..427a3826b299a 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -103,8 +103,7 @@ Preprocessor::Preprocessor(const PreprocessorOptions &PPOpts, OwnsHeaderSearch = OwnsHeaders; // Only record check points if we might highlight diagnostic snippets. - RecordCheckPoints = getDiagnostics().getDiagnosticOptions().getShowColors() != - ShowColorsKind::Off; + RecordCheckPoints = getDiagnostics().getShowColors(); // Default to discarding comments. KeepComments = false;