diff options
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
-rw-r--r-- | clang/Driver/HTMLPrint.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index 2b014899631..54678dea3e3 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/Driver/HTMLPrint.cpp @@ -59,8 +59,10 @@ HTMLPrinter::~HTMLPrinter() { html::AddLineNumbers(R, FileID); html::AddHeaderFooterInternalBuiltinCSS(R, FileID); - // If we have a preprocessor, relex the file and syntax hilight. We might not - // have a preprocessor if we come from a deserialized AST file, for example. + // If we have a preprocessor, relex the file and syntax highlight. + // We might not have a preprocessor if we come from a deserialized AST file, + // for example. + if (PP) { html::SyntaxHighlight(R, FileID, *PP); html::HighlightMacros(R, FileID, *PP); |