diff --git a/clang/lib/AST/CommentBriefParser.cpp b/clang/lib/AST/CommentBriefParser.cpp index a56d79bda75e..bc9244a6935e 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; }