summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-12 05:53:43 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-12 05:53:43 +0000
commit7979ccf35aa987ea49c77a96a2af3b871a88b0f3 (patch)
tree9dd7c51da6d9b3d8700ee2698a55984753866ff2 /llvm/lib/CodeGen/CodeGen.cpp
parentb8cae9fddf12d843e8cb0ec29d84b0b270b4729b (diff)
downloadbcm5719-llvm-7979ccf35aa987ea49c77a96a2af3b871a88b0f3.tar.gz
bcm5719-llvm-7979ccf35aa987ea49c77a96a2af3b871a88b0f3.zip
Teach -Wuninitialized to recognize __attribute__((analyzer_noreturn))
for halting the propagation of uninitialized value tracking along a path. Unlike __attribute__((noreturn)), this attribute (which is used by clients of the static analyzer) can be used to annotate functions that essentially never return, but in rare cares may be allowed to return for (special) debugging purposes. This attribute has been shown in reducing false positives in the static analyzer by pruning false postives, and is equally applicable here. Handling this attribute in the CFG itself is another option, but this is not something all clients (e.g., possibly -Wunreachable-code) would want to see. Addresses <rdar://problem/12281583>. llvm-svn: 163681
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud