diff options
author | Andrew Browne <browneee@google.com> | 2022-04-13 11:49:49 -0700 |
---|---|---|
committer | Andrew Browne <browneee@google.com> | 2022-04-14 14:14:52 -0700 |
commit | cddcf2170ae8d5a199bb99aac2fd27f520696efe (patch) | |
tree | 7886892dd0db71dfd2e29614f37211c58f0d9133 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 6cf0b1b3da3e8662baf030a2d741e3becaaab2b0 (diff) | |
download | llvm-cddcf2170ae8d5a199bb99aac2fd27f520696efe.zip llvm-cddcf2170ae8d5a199bb99aac2fd27f520696efe.tar.gz llvm-cddcf2170ae8d5a199bb99aac2fd27f520696efe.tar.bz2 |
[DFSan] Avoid replacing uses of functions in comparisions.
This can cause crashes by accidentally optimizing out checks for
extern_weak_func != nullptr, when replaced with a known-not-null wrapper.
This solution isn't perfect (only avoids replacement on specific patterns)
but should address common cases.
Internal reference: b/185245029
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D123701
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions