]> granicus.if.org Git - clang/commitdiff
Comment parsing: add a missing 'else'. Found by inspection.
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 19 Dec 2012 17:17:09 +0000 (17:17 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 19 Dec 2012 17:17:09 +0000 (17:17 +0000)
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

lib/AST/CommentParser.cpp

index 403e3d7b2c339f11e4133d119269a52cdb88d95a..7113f140eb716a4236f5f321286ae489f9d0d23a 100644 (file)
@@ -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(),