Commit 9c3b8a6
committed
[CS] Delay macro expansion until end of CSApply
Attempting to expand macros in the middle of
CSApply can result in attempting to run
MiscDiagnostics within a closure that hasn't yet
had the solution applied to the AST, which can
crash the implicit-self diagnostic logic. Move
the expansion to the end of CSApply such that
expansions are type-checked along with local
decls, ensuring it's run after the solution has
been applied to the AST.
rdar://1389970091 parent be94e5d commit 9c3b8a6
2 files changed
+45
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
434 | 439 | | |
435 | 440 | | |
436 | 441 | | |
| |||
5535 | 5540 | | |
5536 | 5541 | | |
5537 | 5542 | | |
5538 | | - | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
5539 | 5546 | | |
5540 | 5547 | | |
5541 | 5548 | | |
5542 | 5549 | | |
5543 | 5550 | | |
5544 | 5551 | | |
5545 | | - | |
5546 | | - | |
5547 | | - | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
5548 | 5556 | | |
5549 | 5557 | | |
5550 | 5558 | | |
| |||
5615 | 5623 | | |
5616 | 5624 | | |
5617 | 5625 | | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
5618 | 5634 | | |
5619 | 5635 | | |
5620 | 5636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
0 commit comments