mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[reference-binding] Add mark_unresolved_reference_binding to signal from SILGen to the pass to check.
Just the SIL part of this.
This commit is contained in:
@@ -2007,6 +2007,19 @@ public:
|
||||
*this << getIDAndType(I->getOperand());
|
||||
}
|
||||
|
||||
void visitMarkUnresolvedReferenceBindingInst(
|
||||
MarkUnresolvedReferenceBindingInst *I) {
|
||||
using Kind = MarkUnresolvedReferenceBindingInst::Kind;
|
||||
switch (I->getKind()) {
|
||||
case Kind::Invalid:
|
||||
llvm_unreachable("Invalid?!");
|
||||
case Kind::InOut:
|
||||
*this << "[inout] ";
|
||||
break;
|
||||
}
|
||||
*this << getIDAndType(I->getOperand());
|
||||
}
|
||||
|
||||
void visitCopyableToMoveOnlyWrapperValueInst(
|
||||
CopyableToMoveOnlyWrapperValueInst *I) {
|
||||
switch (I->getInitialKind()) {
|
||||
|
||||
Reference in New Issue
Block a user