diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-05 00:49:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-05 00:49:17 +0000 |
commit | 40e9bc84a2ab49fc33c2b1a95c6674ab2b820e9e (patch) | |
tree | 295c22faaaedd440c116a7f076430195af52d9c5 /lib/Parse/Parser.cpp | |
parent | 852157601505e0a641f1b66c9e2fb028f77bb7d1 (diff) |
Simplify the interface to ParseFunctionStatementBody to not take
locations that are the current tok loc. Note that inline C++ methods
have a big fixme that could cause a crash.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 30db5e6759..3cdaab6e88 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -590,7 +590,7 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) { ParseConstructorInitializer(Res); SourceLocation BraceLoc = Tok.getLocation(); - return ParseFunctionStatementBody(Res, BraceLoc, BraceLoc); + return ParseFunctionStatementBody(Res); } /// ParseKNRParamDeclarations - Parse 'declaration-list[opt]' which provides |