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.

llvm-svn: 170563

clang/lib/AST/CommentParser.cpp

index 403e3d7..7113f14 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(),