summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-06-25 23:43:45 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-06-25 23:43:45 +0000
commitf74ef4b1e634f094654de3b7b3567fa747c7e8a8 (patch)
tree9f0e183dfd3aa861f944b27870dea6734ca7bcac /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
parenta157b8bef546f96d2c1940a9a27626c9f0da5074 (diff)
downloadbcm5719-llvm-f74ef4b1e634f094654de3b7b3567fa747c7e8a8.tar.gz
bcm5719-llvm-f74ef4b1e634f094654de3b7b3567fa747c7e8a8.zip
[analyzer] Fix invalidation on C++ const methods with arrow syntax.
Conservative evaluation of a C++ method call would invalidate the object, as long as the method is not const or the object has mutable fields. When checking for mutable fields, we need to scan the type of the object on which the method is called, which may be more specific than the type of the object on which the method is defined, hence we look up the type from the this-argument expression. If arrow syntax or implicit-this syntax is used, this-argument expression has pointer type, not record type, and lookup accidentally failed for that reason. Obtain object type correctly. Differential Revision: https://reviews.llvm.org/D48460 llvm-svn: 335555
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud