[analyzer] Use the expression’s type instead of region’s type in ArrayToPointer decay evaluation
This gives slightly better precision, specifically, in cases where a non-typed region represents the array or when the type is a non-array type, which can happen when an array is a result of a reinterpret_cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182810 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h 2 additions, 2 deletions...de/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
- include/clang/StaticAnalyzer/Core/PathSensitive/Store.h 1 addition, 1 deletioninclude/clang/StaticAnalyzer/Core/PathSensitive/Store.h
- lib/StaticAnalyzer/Core/RegionStore.cpp 3 additions, 16 deletionslib/StaticAnalyzer/Core/RegionStore.cpp
- lib/StaticAnalyzer/Core/SValBuilder.cpp 4 additions, 2 deletionslib/StaticAnalyzer/Core/SValBuilder.cpp
- test/Analysis/reference.cpp 7 additions, 0 deletionstest/Analysis/reference.cpp
Please register or sign in to comment