aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-12-29 01:09:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-12-29 01:09:46 +0000
commit20af49a7c5bdb6cca5f4d6586106ef1ce8579311 (patch)
treed4c64ca6bde33f9489c37f6cd55f5db3ff7935f7 /lib/Parse/Parser.cpp
parent78eeba8c7d53b6b2983c76b77b23b45b89ed939d (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.cpp6
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