summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/inline.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-08-28 20:52:13 +0000
committerJordan Rose <jordan_rose@apple.com>2012-08-28 20:52:13 +0000
commit2be6e30d960c26532828760bfb07eea5023074a2 (patch)
tree417fd5067006d0cabba200bd075ddd73725719b2 /clang/test/Analysis/inline.cpp
parentf9a539d8587b1a392d028d97729e59d7069e2dad (diff)
downloadbcm5719-llvm-2be6e30d960c26532828760bfb07eea5023074a2.tar.gz
bcm5719-llvm-2be6e30d960c26532828760bfb07eea5023074a2.zip
[analyzer] When we look for the last stmt in a function, skip implicit dtors.
When exiting a function, the analyzer looks for the last statement in the function to see if it's a return statement (and thus bind the return value). However, the search for "the last statement" was accepting statements that were in implicitly-generated inlined functions (i.e. destructors). So we'd go and get the statement from the destructor, and then say "oh look, this function had no explicit return...guess there's no return value". And /that/ led to the value being returned being declared dead, and all our leak checkers complaining. llvm-svn: 162791
Diffstat (limited to 'clang/test/Analysis/inline.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud