We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a150c67 commit f179e5dCopy full SHA for f179e5d
lib/SIL/Verifier/SILVerifier.cpp
@@ -2728,6 +2728,8 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
2728
requireSameType(LBI->getOperand()->getType().getObjectType(),
2729
LBI->getType(),
2730
"Load operand type and result type mismatch");
2731
+ require(F.getModule().getStage() == SILStage::Raw || !LBI->isUnchecked(),
2732
+ "load_borrow's unchecked bit is on");
2733
}
2734
2735
void checkBeginBorrowInst(BeginBorrowInst *bbi) {
0 commit comments