[all-commits] [llvm/llvm-project] c808e6: [DebugInfo] Don't emit .loc directive with all val...
Oliver Stannard via All-commits
all-commits at lists.llvm.org
Thu Sep 26 01:24:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c808e665ce5a74ed37b807865b92646c4bbbbf3d
https://github.com/llvm/llvm-project/commit/c808e665ce5a74ed37b807865b92646c4bbbbf3d
Author: Oliver Stannard <oliver.stannard at arm.com>
Date: 2024-09-26 (Thu, 26 Sep 2024)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
A llvm/test/DebugInfo/ARM/align-func-start.ll
Log Message:
-----------
[DebugInfo] Don't emit .loc directive with all values zero (#109978)
When emitting debug info for code alignment, it was possible to emit a
.loc directive with a file number of zero, which is invalid for DWARF 4
and earlier. This happened because getCurrentDwarfLoc() returned a
zero-initialised value when there hadn't been a previous .loc directive
emitted.
---------
Co-authored-by: Paul T Robinson <paul.robinson at sony.com>
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