diff options
author | Greg Clayton <clayborg@gmail.com> | 2019-10-09 22:03:15 +0000 |
---|---|---|
committer | Greg Clayton <clayborg@gmail.com> | 2019-10-09 22:03:15 +0000 |
commit | 0156be59b45d3231ee0cb91eae3d68b8aaaed152 (patch) | |
tree | c3b4545a432dc798be3ba954f0772b20ff407eb3 /llvm/lib/Transforms | |
parent | c6dec1d8288cd78ca0d6032551f826ce7a5bbc4e (diff) | |
download | bcm5719-llvm-0156be59b45d3231ee0cb91eae3d68b8aaaed152.tar.gz bcm5719-llvm-0156be59b45d3231ee0cb91eae3d68b8aaaed152.zip |
Fix a crasher due to an assert when two files have the same UUID but different paths.
Summary: The PlaceholderObjectFile has an assert in SetLoadAddress that fires if "m_base == value" is not true. To avoid this, we create check that the base address matches, and if it doesn't we clear the module that was found using the UUID so that we create a new PlaceholderObjectFile. Added a test to cover this issue.
Reviewers: labath, aadsm, dvlahovski
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68106
llvm-svn: 374242
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions