]> granicus.if.org Git - clang/commit
[analyzer] Fix assertion in ReturnVisitor for body-farm synthesized getters
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 12 Apr 2016 00:53:26 +0000 (00:53 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 12 Apr 2016 00:53:26 +0000 (00:53 +0000)
commitf3d5db650c525ba2237d1a6bdaa4c698b853bbbd
treeba4f1b7e8e5b5ae8df708328790fbab3238b30f3
parente12f026f7cda0913590dded3025e88bd4af6a6fa
[analyzer] Fix assertion in ReturnVisitor for body-farm synthesized getters
Don't emit a path note marking the return site if the return statement does not
have a valid location. This fixes an assertion failure I introduced in r265839.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/inlining/false-positive-suppression.m