diff options
author | John McCall <rjmccall@apple.com> | 2012-03-30 04:25:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-03-30 04:25:03 +0000 |
commit | 56ea377bc58a3a821da917599ed26c6b37b9727c (patch) | |
tree | 8906d81a5e2a3bd7d923f2abb8a6660bdf3ee300 /lib/CodeGen/CGClass.cpp | |
parent | 3754f9656ab6a4648e5264d891ad5fb2f94f2a1a (diff) |
Add a note about a missing optimization in the case of virtual
inheritance.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index b452c1b7ab..6303e2069d 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -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); |