[all-commits] [llvm/llvm-project] cbfc10: Fix lld crash caused by dynamic bit offset patch (...
Tom Tromey via All-commits
all-commits at lists.llvm.org
Wed Jul 2 10:30:56 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cbfc10260cfeab7ede763bffad4c71d9ae20abd2
https://github.com/llvm/llvm-project/commit/cbfc10260cfeab7ede763bffad4c71d9ae20abd2
Author: Tom Tromey <tromey at adacore.com>
Date: 2025-07-02 (Wed, 02 Jul 2025)
Changed paths:
A lld/test/ELF/lto/lazy-debug.ll
M llvm/lib/Bitcode/Reader/MetadataLoader.cpp
Log Message:
-----------
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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list