[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:
Michael Gottesman
2023-03-03 15:09:27 -08:00
parent 78d57ea6be
commit 00d54ebaa8
19 changed files with 141 additions and 2 deletions

View File

@@ -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()) {