diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-02 17:15:43 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-02 17:15:43 +0000 |
commit | f98849eb8aa991668e5c47eeb7b2899772af3810 (patch) | |
tree | 11966ec08d59ff029272b1a82e0237c433a1589d /clang/lib/Sema/SemaExprCXX.cpp | |
parent | fffbc0c5d92deee5304a4e0b560e15f36f07b944 (diff) | |
download | bcm5719-llvm-f98849eb8aa991668e5c47eeb7b2899772af3810.tar.gz bcm5719-llvm-f98849eb8aa991668e5c47eeb7b2899772af3810.zip |
In Sema, whenever we think that a function is going to cause a vtable to be generated, we mark any virtual implicit member functions as referenced.
llvm-svn: 90327
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index f5f712a0a5e..148dc639449 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -775,8 +775,7 @@ void Sema::DeclareGlobalAllocationFunction(DeclarationName Name, bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD, DeclarationName Name, - FunctionDecl* &Operator, - bool Diagnose) { + FunctionDecl* &Operator) { LookupResult Found(*this, Name, StartLoc, LookupOrdinaryName); // Try to find operator delete/operator delete[] in class scope. LookupQualifiedName(Found, RD); @@ -796,8 +795,6 @@ bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD, // We did find operator delete/operator delete[] declarations, but // none of them were suitable. if (!Found.empty()) { - if (!Diagnose) - return true; Diag(StartLoc, diag::err_no_suitable_delete_member_function_found) << Name << RD; |