Add a note about a missing optimization in the case of virtual

inheritance.

llvm-svn: 153722
This commit is contained in:
John McCall
2012-03-30 04:25:03 +00:00
parent 5a125b4040
commit 8831303e4f
2 changed files with 14 additions and 0 deletions

View File

@@ -731,6 +731,9 @@ void CodeGenFunction::EmitConstructorBody(FunctionArgList &Args) {
EHScopeStack::stable_iterator CleanupDepth = EHStack.stable_begin();
// TODO: in restricted cases, we can emit the vbase initializers of
// a complete ctor and then delegate to the base ctor.
// Emit the constructor prologue, i.e. the base and member
// initializers.
EmitCtorPrologue(Ctor, CtorType, Args);