aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2024-09-26 10:24:30 +0200
committerGitHub <noreply@github.com>2024-09-26 09:24:30 +0100
commitc808e665ce5a74ed37b807865b92646c4bbbbf3d (patch)
tree7c85ac9e04620f7b5621ec8bef1e893d7eef73cb /clang/lib/CodeGen/CodeGenModule.cpp
parent57bed5cd63b5d23ca821be09b4e593646cd84146 (diff)
downloadllvm-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