[all-commits] [llvm/llvm-project] cddcf2: [DFSan] Avoid replacing uses of functions in compa...
Andrew Browne via All-commits
all-commits at lists.llvm.org
Thu Apr 14 14:15:36 PDT 2022
Author: Andrew Browne <browneee at google.com>
Date: 2022-04-14 (Thu, 14 Apr 2022)
[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
More information about the All-commits