Commit 0120f13
committed
[SILVerifier] Log on bad debug-info.
Previously, logging of the actually problematic instruction was guarded
by LLVM_DEBUG. Meanwhile the verifier's require method prints an
instruction (usually one different from that at which the non-contiguous
scope was encountered).
Here, instead, the problematic instruction and the instruction which
defined the previous scope are printed to llvm::errs always (i.e.
whenever verification is actually run).
Additionally, debug-info logging is forcibly set on upon failure so that
the logs clearly show both what the previous scope was, what the current
scope is, and what instructions defined them.1 parent 6f716a5 commit 0120f13
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
5801 | 5802 | | |
5802 | 5803 | | |
5803 | 5804 | | |
| 5805 | + | |
5804 | 5806 | | |
5805 | 5807 | | |
5806 | 5808 | | |
| |||
5814 | 5816 | | |
5815 | 5817 | | |
5816 | 5818 | | |
| 5819 | + | |
5817 | 5820 | | |
5818 | 5821 | | |
5819 | 5822 | | |
| |||
5838 | 5841 | | |
5839 | 5842 | | |
5840 | 5843 | | |
| 5844 | + | |
5841 | 5845 | | |
5842 | 5846 | | |
5843 | 5847 | | |
5844 | | - | |
5845 | | - | |
5846 | | - | |
5847 | | - | |
| 5848 | + | |
| 5849 | + | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
5848 | 5862 | | |
5849 | 5863 | | |
5850 | 5864 | | |
| |||
0 commit comments