[all-commits] [llvm/llvm-project] b6a41f: [DWARF][DebugInfo] Fix off-by-one error in size of...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Fri Jan 21 03:38:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6a41fddcfd375ce30487ef87ca2cd65a6be0bcc
      https://github.com/llvm/llvm-project/commit/b6a41fddcfd375ce30487ef87ca2cd65a6be0bcc
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2022-01-21 (Fri, 21 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    A llvm/test/DebugInfo/X86/base-type-size.ll

  Log Message:
  -----------
  [DWARF][DebugInfo] Fix off-by-one error in size of DW_TAG_base_type types

Fix PR53163 by rounding the byte size of DW_TAG_base_type types up. Without
this fix we risk emitting types with a truncated size (including rounding
less-than-byte-sized types' sizes down to zero).

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D117124




More information about the All-commits mailing list