[PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

Naomi Musgrave via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 1 16:49:26 PDT 2015


nmusgrave added inline comments.

================
Comment at: lib/CodeGen/CGCXX.cpp:42-44
@@ -33,1 +41,5 @@
 bool CodeGenModule::TryEmitBaseDestructorAsAlias(const CXXDestructorDecl *D) {
+  // If sanitizing memory to check for use-after-dtor, do not emit as
+  // an alias, unless it has no fields or has only fields with non-trivial
+  // destructors.
+  if (getCodeGenOpts().SanitizeMemoryUseAfterDtor)
----------------
vptr poisoning will be implemented in another CL after this is approved


http://reviews.llvm.org/D12022





More information about the cfe-commits mailing list