[DebugInfo] Variables with only empty values emitting when one is variadic
commitdef915c39cc4e18b304c7a8c4761cc4531c3bc4b
authorStephen Tozer <Stephen.Tozer@Sony.com>
Tue, 20 Dec 2022 10:01:56 +0000 (20 10:01 +0000)
committerStephen Tozer <Stephen.Tozer@Sony.com>
Tue, 20 Dec 2022 11:51:38 +0000 (20 11:51 +0000)
tree2f18fe5306f6ae68d4f2e573d952e3921d1ccd2f
parent9aa5de9746292dbdc1e1bce0c27004ad6fe1c352
[DebugInfo] Variables with only empty values emitting when one is variadic

This patch fixes a simple bug in DbgValueHistoryMap::hasNonEmptyLocation
that caused it to treat empty DBG_VALUE_LIST instructions as non-empty
when determining whether to emit a variable or not.

Differential Revision: https://reviews.llvm.org/D133925
llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
llvm/test/DebugInfo/X86/dbg_value_list_emission.mir