diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/CommentSema.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/CommentSema.cpp b/clang/lib/AST/CommentSema.cpp index 06f23462ef2..12b4876e307 100644 --- a/clang/lib/AST/CommentSema.cpp +++ b/clang/lib/AST/CommentSema.cpp @@ -624,11 +624,10 @@ void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { } PrevCommand = BriefCommand; } else if (Info->IsReturnsCommand) { - if (!ReturnsCommand) { + if (!ReturnsCommand) ReturnsCommand = Command; - return; - } PrevCommand = ReturnsCommand; + return; } else if (Info->IsHeaderfileCommand) { if (!HeaderfileCommand) { HeaderfileCommand = Command; |