[PATCH] D11109: basic code generation for use-after-dtor

Reid Kleckner rnk at google.com
Mon Jul 13 14:15:13 PDT 2015


rnk added a subscriber: rnk.

================
Comment at: lib/CodeGen/CGClass.cpp:1456
@@ +1455,3 @@
+  if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor) {
+    const ASTRecordLayout &Layout =
+        getContext().getASTRecordLayout(Dtor->getParent());
----------------
Would you mind factoring this out to a helper function? Most readers of clang irgen probably aren't interested in this instrumentation.


http://reviews.llvm.org/D11109







More information about the cfe-commits mailing list