Revert "Disable delegating constructors for 2.9"

It is only meant for the release branch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127544 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sebastian Redl 2011-03-12 13:53:51 +00:00
Родитель 9d0af360ec
Коммит f9c32eb0f8
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -1532,10 +1532,7 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
if (!LangOpts.CPlusPlus0x)
return Diag(Loc, diag::err_delegation_0x_only)
<< TInfo->getTypeLoc().getLocalSourceRange();
// Disable for 2.9.
return Diag(Loc, diag::err_delegation_unimplemented)
<< TInfo->getTypeLoc().getLocalSourceRange();
#if 0
// Initialize the object.
InitializedEntity DelegationEntity = InitializedEntity::InitializeDelegation(
QualType(ClassDecl->getTypeForDecl(), 0));
@ -1582,7 +1579,6 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
return new (Context) CXXCtorInitializer(Context, Loc, LParenLoc, Constructor,
DelegationInit.takeAs<Expr>(),
RParenLoc);
#endif
}
MemInitResult