summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-06-15 00:47:13 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-06-15 00:47:13 +0000
commit2af2b3071dbb0c608de99e1163338cd5b1e8e497 (patch)
tree7dba9d6e0178e225c7c15249a76b56ec95e2606a /clang/lib/Lex/Lexer.cpp
parent1d1fa72837c471d18974dc3d68db2e5371290091 (diff)
downloadbcm5719-llvm-2af2b3071dbb0c608de99e1163338cd5b1e8e497.tar.gz
bcm5719-llvm-2af2b3071dbb0c608de99e1163338cd5b1e8e497.zip
Fix PR13065.
This condition (added in r158093) was overly conservative. llvm-svn: 158483
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r--clang/lib/Lex/Lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 9662f9d9097..208951faf38 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -2631,7 +2631,7 @@ LexNextToken:
ParsingPreprocessorDirective = false;
// Restore comment saving mode, in case it was disabled for directive.
- if (!LexingRawMode)
+ if (PP)
SetCommentRetentionState(PP->getCommentRetentionState());
// Since we consumed a newline, we are back at the start of a line.
OpenPOWER on IntegriCloud