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 | 12f2ea501594c0559e45a11ccd869a2cfc7e12ea (patch) | |
tree | 24531ddf19d99405637a83228b482e8c3c11f7e1 /clang/lib/Parse/Parser.cpp | |
parent | ad6b47377f6aa8214a900fb66b5caa443b462aae (diff) | |
download | bcm5719-llvm-12f2ea501594c0559e45a11ccd869a2cfc7e12ea.tar.gz bcm5719-llvm-12f2ea501594c0559e45a11ccd869a2cfc7e12ea.zip |
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.
llvm-svn: 66113
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 30db5e67590..3cdaab6e889 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/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 |