[PATCH] D22034: [MSVC][DLL] use local vftable mangling only exported classes with virtual destructor
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 13 09:27:11 PDT 2016
rnk added inline comments.
================
Comment at: lib/AST/ExprConstant.cpp:5766
@@ +5765,3 @@
+ if (CXXRecordDecl *CD = dyn_cast<CXXRecordDecl>(
+ E->getType()->castAs<RecordType>()->getDecl()))
+ CD->setNeedLocalVFTable();
----------------
Even better:
if (auto *CD = E->getType()->getAsCXXRecordDecl())
http://reviews.llvm.org/D22034
More information about the cfe-commits
mailing list