[PATCH] D110740: Do not emit prologue_end for line 0 locs

Shubham Sandeep Rastogi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 10:47:30 PDT 2021


rastogishubham created this revision.
rastogishubham added a reviewer: aprantl.
rastogishubham added a project: debug-info.
Herald added subscribers: pengfei, hiraditya.
rastogishubham requested review of this revision.
Herald added a project: LLVM.

This change fixes a bug where the compiler generates a prologue_end for line 0 locs. That is because line 0 is not associated with any source location, so there should not be a prolgoue_end at a location that doesn't correspond to a source location.

There were some LLVM tests that were explicitly checking for line 0 prologue_end's as well since I believe that to be incorrect, I had to change those tests as well.


https://reviews.llvm.org/D110740

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/test/CodeGen/X86/line-zero-prologue-end.ll
  llvm/test/DebugInfo/MIR/X86/debug-loc-0.mir
  llvm/test/DebugInfo/X86/dbg-prolog-end.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110740.375944.patch
Type: text/x-patch
Size: 7027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210929/c14dca28/attachment.bin>


More information about the llvm-commits mailing list