[sil] Eliminate end_borrow_argument now that end_borrow has a single operand.

I changed all of the places that used end_borrow_argument to use end_borrow.

NOTE: I discovered in the process of this patch that we are not verifying
guaranteed block arguments completely. I disabled the tests here that show this
bad behavior and am going to re-enable them with more tests in a separate PR.
This has not been a problem since SILGen does not emit any such arguments as
guaranteed today. But once I do the SILGenPattern work this will change.

rdar://33440767
This commit is contained in:
Michael Gottesman
2018-09-04 20:36:07 -07:00
parent 6f3b6182bc
commit 0290cd4323
20 changed files with 40 additions and 242 deletions

View File

@@ -727,12 +727,6 @@ public:
EndBorrowInst(getSILDebugLocation(Loc), BorrowedValue));
}
EndBorrowArgumentInst *createEndBorrowArgument(SILLocation Loc,
SILValue Arg) {
return insert(new (getModule()) EndBorrowArgumentInst(
getSILDebugLocation(Loc), cast<SILArgument>(Arg)));
}
BeginAccessInst *createBeginAccess(SILLocation loc, SILValue address,
SILAccessKind accessKind,
SILAccessEnforcement enforcement,