]> granicus.if.org Git - clang/commit
[analyzer] Tighten up sanity checks on Objective-C property getter synthesis.
authorJordan Rose <jordan_rose@apple.com>
Thu, 23 Jan 2014 03:59:10 +0000 (03:59 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 23 Jan 2014 03:59:10 +0000 (03:59 +0000)
commit8eca7d4e604cfa929ca9d237cffe5e99c80e3d5e
tree907126e3c14244ec3dc6f044dced70661cacb06a
parent69fb008cb11e4dedd92f6abf60fbdecfea4ab0bf
[analyzer] Tighten up sanity checks on Objective-C property getter synthesis.

If there are non-trivially-copyable types /other/ than C++ records, we
won't have a synthesized copy expression, but we can't just use a simple
load/return.

Also, add comments and shore up tests, making sure to test in both ARC
and non-ARC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BodyFarm.cpp
lib/Analysis/BodyFarm.h
test/Analysis/properties.m
test/Analysis/properties.mm