[PATCH] D12712: Implementation and testing for poisoning vtable ptr in dtor.

Naomi Musgrave via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 10 16:37:18 PDT 2015


nmusgrave marked 2 inline comments as done.

================
Comment at: lib/CodeGen/CGClass.cpp:1652
@@ +1651,3 @@
+
+ static void Poison(CodeGenFunction &CGF, llvm::Value *OffsetPtr,
+                    CharUnits::QuantityType PoisonSize);
----------------
eugenis wrote:
> If it's a global function, it should have a more descriptive name, like EmitSanitizerDtorCallback.
> OffsetPtr => just Ptr
> And move the body of the function to this line to avoid unnecessary redeclaration.
It's inside of a namespace- is it still global?


http://reviews.llvm.org/D12712





More information about the cfe-commits mailing list