aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-19 00:01:56 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-19 00:01:56 +0000
commit858e69fe1305bdffb76a200c0f498685f11e65ae (patch)
tree889281f2d54b20709499f21c333075ba44dc5d61 /lib/AST/Comment.cpp
parente3898ac6cca333f9a781eb6df4be5f3ba8258559 (diff)
Fix ParagraphComment::isWhitespace(): a paragraph without a non-whitespace
TextComment node was considered whitespace even if it contained other child nodes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r--lib/AST/Comment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp
index f3f4d9bf16..82dbed47f8 100644
--- a/lib/AST/Comment.cpp
+++ b/lib/AST/Comment.cpp
@@ -116,7 +116,8 @@ bool ParagraphComment::isWhitespaceNoCache() const {
if (const TextComment *TC = dyn_cast<TextComment>(*I)) {
if (!TC->isWhitespace())
return false;
- }
+ } else
+ return false;
}
return true;
}