Skip to content

Commit 78863dd

Browse files
committed
Small fixes.
1 parent 7ceb11d commit 78863dd

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
@@ -1114,7 +1114,8 @@ RValue RValueEmitter::visitLoadExpr(LoadExpr *E, SGFContext C) {
11141114
}
11151115

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

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

0 commit comments

Comments
 (0)