[all-commits] [llvm/llvm-project] fae31e: [DebugInfo] Change handling of structured binding...

John Brawn via All-commits all-commits at lists.llvm.org
Mon Jun 17 09:16:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fae31e283203da9a4a3225e2d016e245d4887c2f
      https://github.com/llvm/llvm-project/commit/fae31e283203da9a4a3225e2d016e245d4887c2f
  Author: John Brawn <john.brawn at arm.com>
  Date:   2024-06-17 (Mon, 17 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGDebugInfo.h
    M clang/test/CodeGenCXX/debug-info-structured-binding-bitfield.cpp

  Log Message:
  -----------
   [DebugInfo] Change handling of structured bindings of bitfields (#94632)

Currently we use DW_OP_plus_uconst to handle the bitfield offset and
handle the bitfield size by choosing a type size that matches, but this
doesn't work if either offset or size aren't byte-aligned. Extracting
the bits using DW_OP_LLVM_extract_bits means we can handle any kind of
offset or size.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list