]> granicus.if.org Git - llvm/commit
[Attributor][FIX] Ensure h2s doesn't trigger on escaped pointers
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 04:14:15 +0000 (04:14 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 04:14:15 +0000 (04:14 +0000)
commitb2985004e40f6be3185ae7d52697858478af3d4a
tree21b0c3261cdf3053890af5390d01ec7e653a4878
parentcfbbef223104b06bdc3c865658df211dde6a9f78
[Attributor][FIX] Ensure h2s doesn't trigger on escaped pointers

We do not yet perform h2s because we know something is free'ed but we do
it because we know the pointer does not escape. Storing the pointer
allows it to escape so we have to prevent that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Attributor.cpp
test/Transforms/FunctionAttrs/heap_to_stack.ll