Build AST for default ctor-initializer when constructor has
out of line definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75668 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp
index a2324ab..8dcf24f 100644
--- a/lib/Parse/ParseCXXInlineMethods.cpp
+++ b/lib/Parse/ParseCXXInlineMethods.cpp
@@ -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);