summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentBriefParser.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-03 18:10:20 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-03 18:10:20 +0000
commit767ea0ff4a376cd6e82924aceb4b4aee9459176a (patch)
treee90be76ae3c499f0c6daa444a3583329ad67e177 /clang/lib/AST/CommentBriefParser.cpp
parent1e8dffdf270e0e2a513df4219fd3a6194894760a (diff)
downloadbcm5719-llvm-767ea0ff4a376cd6e82924aceb4b4aee9459176a.tar.gz
bcm5719-llvm-767ea0ff4a376cd6e82924aceb4b4aee9459176a.zip
CommentBriefParser: remove dead store. Found by Clang Analyzer.
llvm-svn: 159673
Diffstat (limited to 'clang/lib/AST/CommentBriefParser.cpp')
-rw-r--r--clang/lib/AST/CommentBriefParser.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/AST/CommentBriefParser.cpp b/clang/lib/AST/CommentBriefParser.cpp
index a56d79bda75..bc9244a6935 100644
--- a/clang/lib/AST/CommentBriefParser.cpp
+++ b/clang/lib/AST/CommentBriefParser.cpp
@@ -81,10 +81,8 @@ std::string BriefParser::Parse() {
if (isBlockCommand(Name)) {
// We found an implicit paragraph end.
InFirstParagraph = false;
- if (InBrief) {
- InBrief = false;
+ if (InBrief)
break;
- }
}
}
@@ -97,10 +95,8 @@ std::string BriefParser::Parse() {
ConsumeToken();
// We found a paragraph end.
InFirstParagraph = false;
- if (InBrief) {
- InBrief = false;
+ if (InBrief)
break;
- }
}
continue;
}
OpenPOWER on IntegriCloud