aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseCXXInlineMethods.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-05 00:49:17 +0000
committerChris Lattner <sabre@nondot.org>2009-03-05 00:49:17 +0000
commit40e9bc84a2ab49fc33c2b1a95c6674ab2b820e9e (patch)
tree295c22faaaedd440c116a7f076430195af52d9c5 /lib/Parse/ParseCXXInlineMethods.cpp
parent852157601505e0a641f1b66c9e2fb028f77bb7d1 (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/ParseCXXInlineMethods.cpp')
-rw-r--r--lib/Parse/ParseCXXInlineMethods.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp
index 4aa923ca00..cc61f0f6fd 100644
--- a/lib/Parse/ParseCXXInlineMethods.cpp
+++ b/lib/Parse/ParseCXXInlineMethods.cpp
@@ -136,8 +136,8 @@ void Parser::ParseLexedMethodDefs() {
if (Tok.is(tok::colon))
ParseConstructorInitializer(LM.D);
-
- ParseFunctionStatementBody(LM.D, Tok.getLocation(), Tok.getLocation());
+ // FIXME: What if ParseConstructorInitializer doesn't leave us with a '{'??
+ ParseFunctionStatementBody(LM.D);
}
}