diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-29 01:09:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-29 01:09:46 +0000 |
commit | 20af49a7c5bdb6cca5f4d6586106ef1ce8579311 (patch) | |
tree | d4c64ca6bde33f9489c37f6cd55f5db3ff7935f7 /lib/Parse/Parser.cpp | |
parent | 78eeba8c7d53b6b2983c76b77b23b45b89ed939d (diff) |
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
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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 |