summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-10 22:27:29 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-10 22:27:29 +0000
commitca3682d4861ac597ea9b03c8b5e0d19bac4df82e (patch)
tree1bdfcac918c5b953846970147f8cf75c0b0530d4 /clang/lib
parent2f5f696b667667bbffc180cbcb0a1eea97ce22e7 (diff)
downloadbcm5719-llvm-ca3682d4861ac597ea9b03c8b5e0d19bac4df82e.tar.gz
bcm5719-llvm-ca3682d4861ac597ea9b03c8b5e0d19bac4df82e.zip
Make sure we're producing a newline in the preprocessed output before
emitting a #pragma, whenever one is needed. Fixes <rdar://problem/8417307>. llvm-svn: 113648
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 2159d3e80d8..d0aef2918cc 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -455,8 +455,7 @@ struct UnknownPragmaHandler : public PragmaHandler {
Token &PragmaTok) {
// Figure out what line we went to and insert the appropriate number of
// newline characters.
- if (Introducer == PIK__Pragma || Introducer == PIK___pragma)
- Callbacks->StartNewLineIfNeeded();
+ Callbacks->StartNewLineIfNeeded();
Callbacks->MoveToLine(PragmaTok.getLocation());
Callbacks->OS.write(Prefix, strlen(Prefix));
Callbacks->SetEmittedTokensOnThisLine();
OpenPOWER on IntegriCloud