[llvm] [DebugInfo] Emit negative DW_AT_bit_offset in explicit signed form (PR #87994)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 10:50:18 PDT 2024
================
@@ -16,7 +16,7 @@
; CHECK-NEXT: .b8 1 // DW_AT_byte_size
; CHECK-NEXT: .b8 6 // DW_AT_bit_size
; Negative offset must be encoded as an unsigned integer.
-; CHECK-NEXT: .b64 0xffffffffffffffff // DW_AT_bit_offset
+; CHECK-NEXT: .b8 127 // DW_AT_bit_offset
----------------
pogo59 wrote:
I believe DW_FORM_sdata encodes its value as a signed LEB128, so this is a one-byte encoding of -1.
https://github.com/llvm/llvm-project/pull/87994
More information about the llvm-commits
mailing list