summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CMakeLists.txt
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-12-22 02:06:51 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-12-22 02:06:51 +0000
commit02955afbb4676625dba724f693e55e0c8826f249 (patch)
tree405171cbde38e0c5ff41741bd4fec096ce58a285 /clang-tools-extra/clangd/CMakeLists.txt
parent1f02ac34519be8e49b7eb3491569810be2dfc21c (diff)
downloadbcm5719-llvm-02955afbb4676625dba724f693e55e0c8826f249.tar.gz
bcm5719-llvm-02955afbb4676625dba724f693e55e0c8826f249.zip
[analyzer] pr38668: Do not attempt to cast loaded integers to floats.
This patch is a different approach to landing the reverted r349701. It is expected to have the same object (memory region) treated as if it has different types in different program points. The correct behavior for RegionStore when an object is stored as an object of type T1 but loaded as an object of type T2 is to store the object as if it has type T1 but cast it to T2 during load. Note that the cast here is some sort of a "reinterpret_cast" (even in C). For instance, if you store an integer and load a float, you won't get your integer represented as a float; instead, you will get garbage. Admit that we cannot perform the cast and return an unknown value. Differential Revision: https://reviews.llvm.org/D55875 rdar://problem/45062567 llvm-svn: 349984
Diffstat (limited to 'clang-tools-extra/clangd/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud