[PATCH] D41050: Fix over-release of return value of lambda implicitly converted to block/function pointer
Dan Zimmerman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 14 06:50:02 PST 2017
danzimm added a comment.
@dexonsmith Here are my results after passing those extra flags with `-O3` (/Users/danzimm/oss/build/bin/clang -cc1 -internal-isystem /Users/danzimm/oss/build/lib/clang/6.0.0/include -nostdsysteminc -triple x86_64-apple-macosx10.12.0 -emit-llvm -disable-llvm-passes -O3 -fblocks -fobjc-arc -fobjc-runtime-has-weak -std=c++11 -mllvm -debug-pass=Executions -o ~/foo.ll /Users/danzimm/oss/llvm/tools/clang/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm):
Pass Arguments: -tti
Target Transform Information
FunctionPass Manager
Pass Arguments: -tti
Target Transform Information
ModulePass Manager
Print Module IR
[2017-12-14 09:47:12.252472000] 0x7f87b90016f0 Executing Pass 'Print Module IR' on Module '/Users/danzimm/oss/llvm/tools/clang/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm'...
[2017-12-14 09:47:12.254702000] 0x7f87b90016f0 Freeing Pass 'Print Module IR' on Module '/Users/danzimm/oss/llvm/tools/clang/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm'...
Pass Arguments: -tti
Target Transform Information
ModulePass Manager
and with `-O0` (/Users/danzimm/oss/build/bin/clang -cc1 -internal-isystem /Users/danzimm/oss/build/lib/clang/6.0.0/include -nostdsysteminc -triple x86_64-apple-macosx10.12.0 -emit-llvm -disable-llvm-passes -O0 -fblocks -fobjc-arc -fobjc-runtime-has-weak -std=c++11 -mllvm -debug-pass=Executions -o ~/foo.ll /Users/danzimm/oss/llvm/tools/clang/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm):
Pass Arguments: -tti
Target Transform Information
FunctionPass Manager
Pass Arguments: -tti
Target Transform Information
ModulePass Manager
Print Module IR
[2017-12-14 09:47:20.884147000] 0x7ff71ed097d0 Executing Pass 'Print Module IR' on Module '/Users/danzimm/oss/llvm/tools/clang/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm'...
[2017-12-14 09:47:20.886182000] 0x7ff71ed097d0 Freeing Pass 'Print Module IR' on Module '/Users/danzimm/oss/llvm/tools/clang/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm'...
Pass Arguments: -tti
Target Transform Information
ModulePass Manager
Repository:
rC Clang
https://reviews.llvm.org/D41050
More information about the cfe-commits
mailing list