Avoid referencing the vtable when calling the ctor without emitting it
authorReid Kleckner <reid@kleckner.net>
Wed, 16 Jul 2014 00:30:59 +0000 (00:30 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 16 Jul 2014 00:30:59 +0000 (00:30 +0000)
commit4e32604f60c03c71c81f3f30fb31b1b0734e467d
tree20dccb98f315d0647d920f7afc4b36c1b05189c2
parent480872b4cebae33252f301fe3b4dfa0473603dcb
Avoid referencing the vtable when calling the ctor without emitting it

This fixes compilation errors about incomplete types used with WebKit's
RefPtr template.  Simply calling an out of line constructor should not
instantiate all inline and defaulted virtual methods.

Tested by building and testing several big piles of code on Linux.

Reviewers: rsmith

Differential Revision: http://reviews.llvm.org/D4429

llvm-svn: 213109
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaTemplate/virtual-member-functions.cpp