]> granicus.if.org Git - clang/commit
[analyzer] PR41335: Fix crash when no-store event is in a body-farmed function.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Apr 2019 02:50:38 +0000 (02:50 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Apr 2019 02:50:38 +0000 (02:50 +0000)
commit4991acc29ead05453c8ca45164d3b3684bc66f6f
treea4ce46d3a4fc080cc6a948125274b2e7eb329d3a
parentd568cd71389d81e358fb18d99879c4d76d9dd4ae
[analyzer] PR41335: Fix crash when no-store event is in a body-farmed function.

Stuffing invalid source locations (such as those in functions produced by
body farms) into path diagnostics causes crashes.

Fix a typo in a nearby function name.

Differential Revision: https://reviews.llvm.org/D60808

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358945 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/OSAtomic_mac.c [new file with mode: 0644]