[all-commits] [llvm/llvm-project] e0e174: [analyzer] Fix a crash in NoStateChangeVisitor wit...
NoQ via All-commits
all-commits at lists.llvm.org
Thu Feb 17 10:13:53 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0e174845b08b36a3888f47f6b06e496f75cf847
https://github.com/llvm/llvm-project/commit/e0e174845b08b36a3888f47f6b06e496f75cf847
Author: Artem Dergachev <artem.dergachev at gmail.com>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
A clang/test/Analysis/malloc-bodyfarms.c
A clang/test/Analysis/malloc-bodyfarms.cpp
Log Message:
-----------
[analyzer] Fix a crash in NoStateChangeVisitor with body-farmed stack frames.
LocationContext::getDecl() isn't useful for obtaining the "farmed" body because
the (synthetic) body statement isn't actually attached to the (natural-grown)
declaration in the AST.
Differential Revision: https://reviews.llvm.org/D119509
More information about the All-commits
mailing list