]> granicus.if.org Git - clang/commit
[analyzer] Do not crash in NoStoreFuncVisitor notes if an unexpected region is found.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 3 Aug 2018 23:19:07 +0000 (23:19 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 3 Aug 2018 23:19:07 +0000 (23:19 +0000)
commitb319a856c2fb1c61915ab0185fa0e416a3910182
tree27f4a456b7e1185b7ccca1b7f3a98cfb2766f4a0
parenta336291ffe7ae5927e040fd3fcffb3af30d7fff5
[analyzer] Do not crash in NoStoreFuncVisitor notes if an unexpected region is found.

Just do not generate the note at all in that case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/diagnostics/no-store-func-path-notes.cpp