Skip to content

Commit d624927

Browse files
committed
Small fixes.
1 parent f16d1e4 commit d624927

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILGen/SILGenExpr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ RValue RValueEmitter::visitLoadExpr(LoadExpr *E, SGFContext C) {
11111111
}
11121112

11131113
RValue RValueEmitter::visitBorrowExpr(BorrowExpr *E, SGFContext C_Ignored) {
1114-
// FIXME: how about address-only types? Maybe BorrowedAddressRead?
1114+
ASSERT(!SGF.getTypeLowering(E->getType()).getLoweredType().isAddress()
1115+
&& "unhandled address-only type");
11151116

11161117
// NOTE: You should NOT add an evaluation scope here!
11171118
// The callers of this visitor should have established a scope already that

0 commit comments

Comments
 (0)