Michael Gottesman
361562aef5
[consume-operator] Emit a better error message when failing to consume globals or escaping captures.
...
Specifically, we previously emitted a "compiler doesn't understand error", so we
were always emitting an error appropriately. This just gives a better error
message saying instead that the compiler did understand what happened and that
one cannot apply consume to globals or escaping captures.
https://github.com/apple/swift/issues/67755
rdar://112561671
2023-08-20 18:59:37 -07:00
Kavon Farvardin
71763a124e
merge similar diagnostics together under a unified naming scheme for more consistent word tense
...
sil_movekillscopyablevalue_* and sil_moveonlychecker_* can share diagnostics.
rdar://109281444
2023-05-24 20:56:38 -07:00
Nate Chandler
689fe3ad0c
[MoveChecker] Adopted BitfieldRef.
...
`::invalidate` was previously used to clear liveness, but it doesn't.
2023-05-02 11:51:53 -07:00
Andrew Trick
ae64ff5cb0
Rename PrunedLiveness.clear() to invalidate()
...
Because SILBitfield cannot be cleared.
2023-03-22 01:36:48 -07:00
Andrew Trick
15796e3ff9
PrunedLiveness: add a SILFunction argument
...
So that liveness can migrate to using a SILBitfield.
2023-03-22 01:36:48 -07:00
Kavon Farvardin
12d33b2b84
run the move-checker if lexical borrow scopes are enabled
...
this pulls just the move checking passes out from
behind the experimental flag.
2023-03-13 22:39:31 -07:00
Michael Gottesman
3a538282ff
[consume-operator] Rename checker passes to have ConsumeOperator in the name to reduce confusion with MoveChecking passes.
...
Just trying to eliminate potential confusion.
2023-01-27 13:46:32 -08:00