[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)
commite2a8e43160588e12923994e2b44f67b2a7443a95
treeb4cd0fb2b5a92c961cf9648cc8eebe6db5979006
parent8c6119a44275852b868c6df0c14ee85efeb2a9e5
[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

llvm-svn: 358945
clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/test/Analysis/OSAtomic_mac.c [new file with mode: 0644]