summaryrefslogtreecommitdiff
path: root/lib/AST/RawCommentList.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-06-27 05:48:36 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-06-27 05:48:36 +0000
commit1e15e3b78c396c829789e616b313e656814f5947 (patch)
tree3b4de4c9e705aad24c07aa14165da41dd73dcb14 /lib/AST/RawCommentList.cpp
parent2dc509d89379c7921ef0dd95d88cd1fc8b0526d1 (diff)
downloadclang-1e15e3b78c396c829789e616b313e656814f5947.tar.gz
Initialize RawComment::BriefTextValid in other constructor, too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/RawCommentList.cpp')
-rw-r--r--lib/AST/RawCommentList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/RawCommentList.cpp b/lib/AST/RawCommentList.cpp
index ede47664d6..b2b0c43aed 100644
--- a/lib/AST/RawCommentList.cpp
+++ b/lib/AST/RawCommentList.cpp
@@ -60,7 +60,8 @@ bool mergedCommentIsTrailingComment(StringRef Comment) {
RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
bool Merged) :
- Range(SR), RawTextValid(false), IsAlmostTrailingComment(false),
+ Range(SR), RawTextValid(false), BriefTextValid(false),
+ IsAlmostTrailingComment(false),
BeginLineValid(false), EndLineValid(false) {
// Extract raw comment text, if possible.
if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {