[cfe-commits] r75668 - in /cfe/trunk/lib/Parse: ParseCXXInlineMethods.cpp Parser.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Jul 14 13:07:04 PDT 2009
Author: fjahanian
Date: Tue Jul 14 15:06:22 2009
New Revision: 75668
URL: http://llvm.org/viewvc/llvm-project?rev=75668&view=rev
Log:
Build AST for default ctor-initializer when constructor has
out of line definition.
Modified:
cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp
cfe/trunk/lib/Parse/Parser.cpp
Modified: cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp?rev=75668&r1=75667&r2=75668&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp (original)
+++ cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp Tue Jul 14 15:06:22 2009
@@ -171,9 +171,8 @@
}
if (Tok.is(tok::colon))
ParseConstructorInitializer(LM.D);
- else {
+ else
Actions.ActOnDefaultInitializers(LM.D);
- }
// FIXME: What if ParseConstructorInitializer doesn't leave us with a '{'??
ParseFunctionStatementBody(LM.D);
Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=75668&r1=75667&r2=75668&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Tue Jul 14 15:06:22 2009
@@ -665,6 +665,8 @@
// ctor-initializer.
if (Tok.is(tok::colon))
ParseConstructorInitializer(Res);
+ else
+ Actions.ActOnDefaultInitializers(Res);
return ParseFunctionStatementBody(Res);
}
More information about the cfe-commits
mailing list