[PATCH] D43841: Add an option to disable tail-call optimization for escaping blocks

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 1 12:07:00 PST 2018


rjmccall added inline comments.


================
Comment at: lib/Sema/SemaExpr.cpp:4846
+        if (auto *BE = dyn_cast<BlockExpr>(Arg->IgnoreParenNoopCasts(Context)))
+          BE->getBlockDecl()->setDoesNotEscape();
+
----------------
Can this be based on the noescape parameter bit on the function type?


https://reviews.llvm.org/D43841





More information about the cfe-commits mailing list