Improve the diagnostic emitted when an unused ObjC property getter
is found.  Instead of complaining about a generic "unused expr",
emit:
t.m:7:3: warning: property access result unused - getters should not have side effects

While objc property getters *could* have side effects, according to
the language best practices, they *shouldn't*.  Hopefully the
diagnostic now gets this across.

llvm-svn: 79192
3 files changed
tree: a2cf987853fdf691537bc1d5026f2d3c8fb00586
  1. clang/
  2. compiler-rt/
  3. llvm/