diff options
author | Tom Tromey <tromey@adacore.com> | 2025-07-02 11:30:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-02 10:30:34 -0700 |
commit | cbfc10260cfeab7ede763bffad4c71d9ae20abd2 (patch) | |
tree | 4ef66fe155063a3b0c77d953978c68c8784880d6 /llvm/lib/Object/ELF.cpp | |
parent | 50f40a5327ad9f8a4a57bb2bf7679f489f86b726 (diff) | |
download | llvm-cbfc10260cfeab7ede763bffad4c71d9ae20abd2.zip llvm-cbfc10260cfeab7ede763bffad4c71d9ae20abd2.tar.gz llvm-cbfc10260cfeab7ede763bffad4c71d9ae20abd2.tar.bz2 |
Fix lld crash caused by dynamic bit offset patch (#146701)
PR #141106 changed the debuginfo metdata to allow dynamic bit offsets
and sizes. This caused a crash in lld when using LTO.
The problem is that lazyLoadOneMetadata assumes that the metadata in
question can be cast to MDNode; but in the typical case where the offset
is a constant, this is not true.
This patch changes this spot to allow non-MDNodes through.
The included test case comes from the report in #141106.
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions