diff options
| author | Fangrui Song <i@maskray.me> | 2022-07-18 09:35:11 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2022-07-18 09:35:12 -0700 |
| commit | b3fd3a9ac3eb31bc478abeefe64c05bfbecd3233 (patch) | |
| tree | 6c7bdc526548d3bd5cdbf452d2255a7912b7e0e4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | ffb8b7b2a0b9e765a74aec87106dd3e83e71ff77 (diff) | |
[IR] Allow absence for Min module flags and make AArch64 BTI/PAC-RET flags backward compatible
D123493 introduced llvm::Module::Min to encode module flags metadata for AArch64
BTI/PAC-RET. llvm::Module::Min does not take effect when the flag is absent in
one module. This behavior is misleading and does not address backward
compatibility problems (when a bitcode with "branch-target-enforcement"==1 and
another without the flag are merged, the merge result is 1 instead of 0).
To address the problems, require Min flags to be non-negative and treat absence
as having a value of zero. For an old bitcode without
"branch-target-enforcement"/"sign-return-address", its value is as if 0.
Differential Revision: https://reviews.llvm.org/D129911
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
