Skip to content
Commit 809435e3 authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

[Sema] Don't set BlockDecl's DoesNotEscape bit if the parameter type of

the function the block is passed to isn't a block pointer type

This patch fixes a bug where a block passed to a function taking a
parameter that doesn't have a block pointer type (e.g., id or reference
to a block pointer) was marked as noescape.

This partially fixes PR50043.

rdar://77030453

Differential Revision: https://reviews.llvm.org/D101097
parent 75be3681
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment