summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-03-30 04:25:03 +0000
committerJohn McCall <rjmccall@apple.com>2012-03-30 04:25:03 +0000
commit8831303e4fb337d8468ec201011e6247d5d6dfc8 (patch)
tree41d5be781949cfbea3c9aaa26362bb55fa79030a /clang/lib/CodeGen
parent5a125b4040212c7955dc7f93080eae3bf1c7c4aa (diff)
downloadbcm5719-llvm-8831303e4fb337d8468ec201011e6247d5d6dfc8.tar.gz
bcm5719-llvm-8831303e4fb337d8468ec201011e6247d5d6dfc8.zip
Add a note about a missing optimization in the case of virtual
inheritance. llvm-svn: 153722
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index b452c1b7ab4..6303e2069d5 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud