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

Alexey Samsonov vonosmas at gmail.com
Mon Jul 13 15:37:25 PDT 2015


samsonov added a subscriber: samsonov.

================
Comment at: lib/CodeGen/CGClass.cpp:1459
@@ +1458,3 @@
+
+    llvm::Value *Args[2] = {
+      Builder.CreateBitCast(LoadCXXThis(), VoidPtrTy),
----------------
Remove the size of the array here. For instance, if you reduce the number of elements, the code would still compile, but the array would have trailing nullptrs.


http://reviews.llvm.org/D11109







More information about the cfe-commits mailing list