Skip to content
Commit 7e82055e authored by Nick Lewycky's avatar Nick Lewycky
Browse files

Make adding nocapture a bit stronger. FreeInst is nocapture. Also,

functions that don't write can't leak a pointer except through 
the return value, so a void readonly function is implicitly nocapture.

Test these, and add a test that verifies that f1 calling f2 with an 
otherwise dead pointer gets both of them marked nocapture.

llvm-svn: 61552
parent ea58ff5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment