[all-commits] [llvm/llvm-project] 7f596b: [DebugInfo] printCompactDWARFExpr: don't assert on...

Scott Linder via All-commits all-commits at lists.llvm.org
Wed Apr 19 13:49:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f596bb50944ee41a9dd1cb95c196dc6f8873b21
      https://github.com/llvm/llvm-project/commit/7f596bb50944ee41a9dd1cb95c196dc6f8873b21
  Author: Scott Linder <Scott.Linder at amd.com>
  Date:   2023-04-19 (Wed, 19 Apr 2023)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp

  Log Message:
  -----------
  [DebugInfo] printCompactDWARFExpr: don't assert on stack size

Gracefully handle non-1 stack sizes in printCompactDWARFExpr rather than
assert. Add support for DW_OP_nop and test the zero-sized stack case.

This is intended to be nearly NFC.

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




More information about the All-commits mailing list