Skip to content

Commit 274f13d

Browse files
committed
SIL: re-downgrade assertion due to issue
1 parent 467f259 commit 274f13d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/SIL/SILBuilder.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,8 @@ class SILBuilder {
11971197
CopyAddrInst *createCopyAddr(SILLocation Loc, SILValue srcAddr,
11981198
SILValue destAddr, IsTake_t isTake,
11991199
IsInitialization_t isInitialize) {
1200-
ASSERT(srcAddr->getType() == destAddr->getType());
1200+
// See rdar://135156833 for why this is not an ASSERT
1201+
assert(srcAddr->getType() == destAddr->getType());
12011202
return insert(new (getModule()) CopyAddrInst(
12021203
getSILDebugLocation(Loc), srcAddr, destAddr, isTake, isInitialize));
12031204
}

0 commit comments

Comments
 (0)