summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-16 16:57:27 +0000
committerChris Lattner <sabre@nondot.org>2009-08-16 16:57:27 +0000
commit2ba5ca9d4fd50309ea067e435c3d84a6718f69e3 (patch)
treea2cf987853fdf691537bc1d5026f2d3c8fb00586 /clang/lib/CodeGen/CodeGenModule.cpp
parentd37f61c1c6afbe606e952f3b058ddf481f4e603a (diff)
downloadbcm5719-llvm-2ba5ca9d4fd50309ea067e435c3d84a6718f69e3.tar.gz
bcm5719-llvm-2ba5ca9d4fd50309ea067e435c3d84a6718f69e3.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud