[DebugInfo][SelectionDAGISel] Do not drop all dbg.declares if one with empty metadata...
authorOCHyams <orlando.hyams@sony.com>
Thu, 5 Jan 2023 14:55:41 +0000 (14:55 +0000)
committerOCHyams <orlando.hyams@sony.com>
Thu, 5 Jan 2023 15:36:50 +0000 (15:36 +0000)
commiteebfee8f9ea7dfc9e7cf4326decadc779969994e
treecb697733c91d8802c4b56aa0dff0cd8ae6c59115
parent210b731c01b020693aa8f53231c659ff5f60149e
[DebugInfo][SelectionDAGISel] Do not drop all dbg.declares if one with empty metadata is found

This error was introduced in 1d1de7467c32d52926ca56b9167a2c65c451ecfa (by me)
about 1 month ago. Found while testing the D140901 patch stack.

Reviewed By: jryans

Differential Revision: https://reviews.llvm.org/D141052
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/test/DebugInfo/X86/empty-metadata-dbg-declare.ll [new file with mode: 0644]