[PATCH] D11613: repress tail call optimization when performing use-after-dtor sanitization

Naomi Musgrave nmusgrave at google.com
Wed Jul 29 16:51:31 PDT 2015


nmusgrave marked 3 inline comments as done.

================
Comment at: lib/CodeGen/CGClass.cpp:1389
@@ -1386,1 +1388,3 @@
+
+  CGF.CurFn->addFnAttr("disable-tail-calls", "true");
   CGF.EmitNounwindRuntimeCall(Fn, Args);
----------------
eugenis wrote:
> Why not SetTailCall() on the new call instruction?
When I did that, it was still emitting tail calls


http://reviews.llvm.org/D11613







More information about the cfe-commits mailing list