]> granicus.if.org Git - clang/commit
OSAtomic simulation: use the original region as the location to load from,
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 9 Dec 2009 08:32:57 +0000 (08:32 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 9 Dec 2009 08:32:57 +0000 (08:32 +0000)
commit2f4a6b25a7409f6f05e8a5e6864de21a337c8958
tree28c46809e4067feed42c892350032b98cb2f2a4d
parenteac813909b3ca1142ad186f6c6a1b1ae0dbf9378
OSAtomic simulation: use the original region as the location to load from,
instead of the ElementRegion obtained from casts.

Test cast: the leak cannot occur bacause the true branch cannot be taken.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90964 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/GRExprEngine.cpp
lib/Analysis/Store.cpp
test/Analysis/NSString.m