[PATCH] D46599: [DbgInfo] Attempt to fix bug 37149

Son Tuan Vu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 14:15:20 PDT 2018


tyb0807 added a comment.

Hi,

I've posted a reduced test case in https://bugs.llvm.org/show_bug.cgi?id=37149.

@rob.lougher Btw, I have taken a look at the test added in https://reviews.llvm.org/D35953 (test/DebugInfo/X86/live-debug-variables.ll). We always have 2 DBG_VALUE instructions:

`DBG_VALUE debug-use $ecx, debug-use $noreg, !"i4", ...`
and
`DBG_VALUE $ebx, debug-use $noreg, !"i4", ...`

The only difference is just the placement of the second `DBG_VALUE` in the MIR. So IIUC, we should always expect 2 location entries in the debug_loc section, shouldn't we?


Repository:
  rL LLVM

https://reviews.llvm.org/D46599





More information about the llvm-commits mailing list