[Assignment Tracking][SelectionDAG] Downgrade dbg.assigns to dbg.values if assignment...
authorOCHyams <orlando.hyams@sony.com>
Tue, 18 Apr 2023 11:41:37 +0000 (12:41 +0100)
committerOCHyams <orlando.hyams@sony.com>
Tue, 18 Apr 2023 12:03:45 +0000 (13:03 +0100)
commit311260a699162897d3e626bc18127a1471e1b2d8
tree0a499ddf357e912f7a440114167f9385da395eb3
parent1ae57fed8806886238b7603f6b3b54350da83f0e
[Assignment Tracking][SelectionDAG] Downgrade dbg.assigns to dbg.values if assignment tracking is not enabled

We shouldn't be able to reach this code path from source code but this provides
a better fail-safe than asserting. The result of the downgrade is a degraded
debugging experience, but it is better than nothing.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D148212
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/DebugInfo/assignment-tracking/X86/assignment-tracking-not-enabled.ll [new file with mode: 0644]