Commit 5413488
committed
SILGen: Fix crash in emitEnumConstructor() if type lowering depends on resilience
It's possible that the result value here is passed indirectly,
but the enum value is loadable inside the constructor's body.
Let's make sure we handle this correctly.
Fixes https://bugs.swift.org/browse/SR-12966 / rdar://problem/70395861.1 parent 527fb5d commit 5413488
File tree
2 files changed
+12
-2
lines changed- lib/SILGen
- test/SILGen
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
549 | 552 | | |
550 | 553 | | |
551 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
0 commit comments