Commit 391762f
committed
[sil] Tighten up SIL verification around when checked_cast_br should/shouldn't have failure arguments.
checked_cast_br in ownership SIL funnels through the original value to the
failure block as a SILArgument for cleanup purposes. In contrast, when SIL is
not in ossa, we do not want the failure bb case to have any arguments since that
is the pattern that SILOptimizer passes expect.
This commit just formalizes these constraints into the SILVerifier to catch
mistakes.1 parent f1327be commit 391762f
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3381 | 3381 | | |
3382 | 3382 | | |
3383 | 3383 | | |
3384 | | - | |
3385 | | - | |
3386 | | - | |
3387 | | - | |
3388 | | - | |
3389 | | - | |
| 3384 | + | |
3390 | 3385 | | |
3391 | 3386 | | |
3392 | | - | |
| 3387 | + | |
3393 | 3388 | | |
3394 | 3389 | | |
3395 | 3390 | | |
3396 | 3391 | | |
3397 | | - | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
3398 | 3395 | | |
3399 | 3396 | | |
3400 | 3397 | | |
| |||
0 commit comments