Commit f0010d1
[Windows SEH] Fix crash on empty seh block (llvm#107031)
Fixes llvm#105813 and
llvm#106915.
Adds a check for the end of the iterator, which can be a sentinel.
The issue was introduced in
llvm@0efe111
from what I can see, so along with the introduction of /EHa support.
(cherry picked from commit 2e0ded3)1 parent 93998af commit f0010d1
File tree
2 files changed
+22
-0
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/WinEH
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1456 | 1460 | | |
1457 | 1461 | | |
1458 | 1462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments