From: Dmitri Gribenko Date: Wed, 19 Dec 2012 17:17:09 +0000 (+0000) Subject: Comment parsing: add a missing 'else'. Found by inspection. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb34db715f1130ad7793fc0cc50c8191c2157c53;p=clang Comment parsing: add a missing 'else'. Found by inspection. No testcase because we were just building an extra AST node and eventually throwing it away, so it did not affect correctness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170563 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/CommentParser.cpp b/lib/AST/CommentParser.cpp index 403e3d7b2c..7113f140eb 100644 --- a/lib/AST/CommentParser.cpp +++ b/lib/AST/CommentParser.cpp @@ -318,7 +318,7 @@ BlockCommandComment *Parser::parseBlockCommand() { PC = S.actOnParamCommandStart(Tok.getLocation(), Tok.getEndLocation(), Tok.getCommandID()); - } if (Info->IsTParamCommand) { + } else if (Info->IsTParamCommand) { IsTParam = true; TPC = S.actOnTParamCommandStart(Tok.getLocation(), Tok.getEndLocation(),