diff options
author | Oliver Stannard <oliver.stannard@arm.com> | 2024-09-26 10:24:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 09:24:30 +0100 |
commit | c808e665ce5a74ed37b807865b92646c4bbbbf3d (patch) | |
tree | 7c85ac9e04620f7b5621ec8bef1e893d7eef73cb /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 57bed5cd63b5d23ca821be09b4e593646cd84146 (diff) | |
download | llvm-c808e665ce5a74ed37b807865b92646c4bbbbf3d.zip llvm-c808e665ce5a74ed37b807865b92646c4bbbbf3d.tar.gz llvm-c808e665ce5a74ed37b807865b92646c4bbbbf3d.tar.bz2 |
[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@sony.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions