summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-07-16 00:30:59 +0000
committerReid Kleckner <reid@kleckner.net>2014-07-16 00:30:59 +0000
commit4e32604f60c03c71c81f3f30fb31b1b0734e467d (patch)
tree20dccb98f315d0647d920f7afc4b36c1b05189c2 /clang/lib/Sema
parent480872b4cebae33252f301fe3b4dfa0473603dcb (diff)
downloadbcm5719-llvm-4e32604f60c03c71c81f3f30fb31b1b0734e467d.tar.gz
bcm5719-llvm-4e32604f60c03c71c81f3f30fb31b1b0734e467d.zip
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
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 8db782a7e20..1db903675e5 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -11445,8 +11445,6 @@ void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func) {
} else if (Constructor->getInheritedConstructor()) {
DefineInheritingConstructor(Loc, Constructor);
}
-
- MarkVTableUsed(Loc, Constructor->getParent());
} else if (CXXDestructorDecl *Destructor =
dyn_cast<CXXDestructorDecl>(Func)) {
Destructor = cast<CXXDestructorDecl>(Destructor->getFirstDecl());
OpenPOWER on IntegriCloud