[all-commits] [llvm/llvm-project] 9cbfdd: [analyzer] Fix crash with pointer to members values
Valeriy Savchenko via All-commits
all-commits at lists.llvm.org
Thu Aug 13 08:04:43 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9cbfdde2ea060d7e51fd2637f63eaa74b8d92848
https://github.com/llvm/llvm-project/commit/9cbfdde2ea060d7e51fd2637f63eaa74b8d92848
Author: Valeriy Savchenko <vsavchenko at apple.com>
Date: 2020-08-13 (Thu, 13 Aug 2020)
Changed paths:
M clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
M clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
M clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
M clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
M clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
M clang/lib/StaticAnalyzer/Core/SVals.cpp
M clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
A clang/test/Analysis/PR46264.cpp
M clang/test/Analysis/pointer-to-member.cpp
Log Message:
-----------
[analyzer] Fix crash with pointer to members values
This fix unifies all of the different ways we handled pointer to
members into one. The crash was caused by the fact that the type
of pointer-to-member values was `void *`, and while this works
for the vast majority of cases it breaks when we actually need
to explain the path for the report.
rdar://problem/64202361
Differential Revision: https://reviews.llvm.org/D85817
More information about the All-commits
mailing list