diff options
Diffstat (limited to 'clang/lib/AST/CommentParser.cpp')
| -rw-r--r-- | clang/lib/AST/CommentParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/CommentParser.cpp b/clang/lib/AST/CommentParser.cpp index 607ace35465..6d535673f8f 100644 --- a/clang/lib/AST/CommentParser.cpp +++ b/clang/lib/AST/CommentParser.cpp @@ -318,9 +318,9 @@ BlockCommandComment *Parser::parseBlockCommand() { if (Tok.is(tok::command) && S.isBlockCommand(Tok.getCommandName())) { // Block command ahead. We can't nest block commands, so pretend that this // command has an empty argument. - ParagraphComment *PC = S.actOnParagraphComment( + ParagraphComment *Paragraph = S.actOnParagraphComment( ArrayRef<InlineContentComment *>()); - return S.actOnBlockCommandFinish(BC, PC); + return S.actOnBlockCommandFinish(IsParam ? PC : BC, Paragraph); } if (IsParam || NumArgs > 0) { |

