| commit | 2ba5ca9d4fd50309ea067e435c3d84a6718f69e3 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Sun Aug 16 16:57:27 2009 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Sun Aug 16 16:57:27 2009 +0000 |
| tree | a2cf987853fdf691537bc1d5026f2d3c8fb00586 | |
| parent | d37f61c1c6afbe606e952f3b058ddf481f4e603a [diff] |
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