aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend
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
commitfe6834af25d0809215c9e205c9983dd6d3f968b4 (patch)
tree206c45a0252c0b2596712990fc7d9b730f16e71e /lib/Frontend
parentbd7c849de9a1647b235597681c3983ba1e8c6c8b (diff)
Make sure we're producing a newline in the preprocessed output before
emitting a #pragma, whenever one is needed. Fixes <rdar://problem/8417307>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r--lib/Frontend/PrintPreprocessedOutput.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp
index 2159d3e80d..d0aef2918c 100644
--- a/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/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();