[all-commits] [llvm/llvm-project] a82421: [MC] Fix line table assertion failure after inline...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Oct 3 10:57:02 PDT 2026
Branch: refs/heads/users/MaskRay/mc-debug-line-1
Home: https://github.com/llvm/llvm-project
Commit: a8242199cd7210727205b466ea504859a87257e4
https://github.com/llvm/llvm-project/commit/a8242199cd7210727205b466ea504859a87257e4
Author: Fangrui Song <i at maskray.me>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M llvm/lib/MC/MCContext.cpp
M llvm/lib/MC/MCObjectStreamer.cpp
A llvm/test/DebugInfo/X86/inline-asm-file-error.ll
M llvm/test/tools/llvm-mca/RISCV/SiFiveX280/riscv-lmul-instrument-no-data-is-err.s
M llvm/test/tools/llvm-mca/RISCV/SiFiveX280/riscv-sew-instrument-no-data-is-err.s
M llvm/test/tools/llvm-mca/RISCV/SiFiveX280/unknown-instrument-is-err.s
M llvm/test/tools/llvm-mca/RISCV/SiFiveX280/unknown-lmul-is-err.s
M llvm/test/tools/llvm-mca/RISCV/SiFiveX280/unknown-sew-is-err.s
Log Message:
-----------
[MC] Fix line table assertion failure after inline asm error
An inline asm `.file 3 "b"` without files 1 and 2 is diagnosed as
"unassigned file number", but code generation continues, and
MCObjectStreamer::finishImpl emits the line table with empty file
entries, which asserts.
Fix #228061: Set MCContext::HadError for errors reported through
MCContext::diagnose, and skip line table emission when an error has been
reported.
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