Fix PR9820: a read-only call differs from a load in that a load doesn't
authorDuncan Sands <baldrick@free.fr>
Fri, 6 May 2011 10:30:37 +0000 (10:30 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 6 May 2011 10:30:37 +0000 (10:30 +0000)
commit5389210e638401b8982b6de7c4e4a16999007035
treea305b4c447abc0294dfd3fec349437a5e75afda3
parent5e926ac651ac497ab782439a3a42840d0ef6f57c
Fix PR9820: a read-only call differs from a load in that a load doesn't
return the pointer being dereferenced, it returns the pointee, but a call
might return the pointer itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130979 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2011-05-06-CapturedAlloca.ll [new file with mode: 0644]