From: Rafael Espindola Date: Sat, 29 Dec 2012 01:09:46 +0000 (+0000) Subject: Minor cleanup. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20af49a7c5bdb6cca5f4d6586106ef1ce8579311;p=clang Minor cleanup. DS parameter has a default (null) value anyway, so there's no need for an if/else here. Patch by Nikola Smiljanić. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171210 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index f96ed99368..a2d1c92d5d 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -760,11 +760,7 @@ Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs, default: dont_know: // We can't tell whether this is a function-definition or declaration yet. - if (DS) { - return ParseDeclarationOrFunctionDefinition(attrs, DS); - } else { - return ParseDeclarationOrFunctionDefinition(attrs); - } + return ParseDeclarationOrFunctionDefinition(attrs, DS); } // This routine returns a DeclGroup, if the thing we parsed only contains a