]> granicus.if.org Git - clang/commitdiff
CommentBriefParser: remove dead store. Found by Clang Analyzer.
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 3 Jul 2012 18:10:20 +0000 (18:10 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 3 Jul 2012 18:10:20 +0000 (18:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159673 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CommentBriefParser.cpp

index a56d79bda75e0ea7eccfd33107f3edb7c0640e0b..bc9244a6935ee63897d9386d83b28bc2f3f039e8 100644 (file)
@@ -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;
     }