[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

@@ -1330,6 +1330,13 @@ public:
MarkMustCheckInst(getSILDebugLocation(loc), src, kind));
}
MarkUnresolvedReferenceBindingInst *createMarkUnresolvedReferenceBindingInst(
SILLocation loc, SILValue src,
MarkUnresolvedReferenceBindingInst::Kind kind) {
return insert(new (getModule()) MarkUnresolvedReferenceBindingInst(
getSILDebugLocation(loc), src, kind));
}
CopyableToMoveOnlyWrapperValueInst *
createOwnedCopyableToMoveOnlyWrapperValue(SILLocation loc, SILValue src) {
return insert(new (getModule()) CopyableToMoveOnlyWrapperValueInst(