summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-31 05:50:40 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-31 05:50:40 +0000
commit6153500517fb6ac67eafa65407fd6dea37a2712b (patch)
tree3aa2349ce67e680cc7d551a310f7445d8f304764 /clang/lib/CodeGen/CGDecl.cpp
parent006039cc7479acf1303d9bf5c583eb90a04bdf38 (diff)
downloadbcm5719-llvm-6153500517fb6ac67eafa65407fd6dea37a2712b.tar.gz
bcm5719-llvm-6153500517fb6ac67eafa65407fd6dea37a2712b.zip
When we're emitting a constructor or destructor call from a delegating
constructor, retrieve our VTT parameter directly. Fixes PR14588 / <rdar://problem/12867962>. llvm-svn: 174042
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 26babea047f..ac45339515b 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -386,7 +386,9 @@ namespace {
}
CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete,
- /*ForVirtualBase=*/false, Loc);
+ /*ForVirtualBase=*/false,
+ /*Delegating=*/false,
+ Loc);
if (NRVO) CGF.EmitBlock(SkipDtorBB);
}
OpenPOWER on IntegriCloud