Commit 30a97d4
committed
[JumpThreading] Bail out maybeMergeBasicBlockIntoOnlyPred if SinglePred is in Unreachable.
Merge SinglePred and its successor may delete SinglePred, and causes
garbage pointer in Unreachable. Bail out
maybeMergeBasicBlockIntoOnlyPred if we found this case.1 parent 73ce961 commit 30a97d4
File tree
2 files changed
+6
-4
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/JumpThreading
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1894 | 1894 | | |
1895 | 1895 | | |
1896 | 1896 | | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1897 | 1902 | | |
1898 | 1903 | | |
1899 | 1904 | | |
1900 | 1905 | | |
1901 | 1906 | | |
1902 | 1907 | | |
1903 | 1908 | | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | 1909 | | |
1908 | 1910 | | |
1909 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments