[PATCH] D41050: Fix over-release of return value of lambda implicitly converted to block/function pointer

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 21:47:48 PST 2017

dexonsmith added a comment.

In https://reviews.llvm.org/D41050#954863, @rjmccall wrote:

> Heh, alright, that works.  It's unfortunate that -disable-llvm-passes doesn't suppress running the pass under -O0; that seems like an oversight.
> Anyway, LGTM.

I suspect `-O0` just generates different IR.  You can confirm what passes are executed by adding `-mllvm -debug-pass=Executions`.

  rC Clang


More information about the cfe-commits mailing list