Revert r70876 and add a testcase (@c7) showing the problem:
authorDuncan Sands <baldrick@free.fr>
Thu, 7 May 2009 18:08:34 +0000 (18:08 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 7 May 2009 18:08:34 +0000 (18:08 +0000)
commit1978426a94e3d3b53f488ffc56516e6e87906a0b
tree18271590fa0bba6ad40e9fa97efa3c791326bf90
parent5b8479c38532a28d86dea8ded09a30ff68f26912
Revert r70876 and add a testcase (@c7) showing the problem:
bits captured, but the pointer marked nocapture.  In fact
I now recall that this problem is why only readnone functions
returning void were considered before!  However keep a small
fix that was also in r70876: a readnone function returning
void can result in bits being captured if it unwinds, so
test for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71168 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CaptureTracking.cpp
test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll