Fix objc_storeStrong pattern matching to catch a potential use of the
authorDan Gohman <gohman@apple.com>
Tue, 8 May 2012 23:34:08 +0000 (23:34 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 8 May 2012 23:34:08 +0000 (23:34 +0000)
commit4670dace66f5ef6ab0b153cd482b5bc827467c73
tree9e79febdb512aa646228ab0380eaef3d13daff27
parentf191b43103113119e60b19b8e78966803a20c655
Fix objc_storeStrong pattern matching to catch a potential use of the
old value after the store but before it is released.
This fixes rdar:/11116986.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
test/Transforms/ObjCARC/contract-storestrong.ll