[all-commits] [llvm/llvm-project] c290a8: [DebugInfo] Fix: Variables that have no non-empty ...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Sun Dec 25 13:28:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c290a8b7a4aa0fefd2c9f3f13a1bb507d8608d7d
      https://github.com/llvm/llvm-project/commit/c290a8b7a4aa0fefd2c9f3f13a1bb507d8608d7d
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2022-12-25 (Sun, 25 Dec 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
    M llvm/test/DebugInfo/X86/dbg_value_list_emission.mir

  Log Message:
  -----------
  [DebugInfo] Fix: Variables that have no non-empty values being emitted when they have a DBG_VALUE_LIST

This patch fixes a simple bug where `DbgValueHistoryMap::hasNonEmptyLocation` was incorrectly handling DBG_VALUE_LIST instructions, treating empty values as non-empty, causing empty variables to be emitted into DWARF.

Reviewed By: Orlando

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




More information about the All-commits mailing list