Skip to content

Commit bcc40b4

Browse files
authored
Merge pull request #76215 from kavon/downgrade-assert
SIL: re-downgrade assertion due to issue
2 parents 467f259 + 274f13d commit bcc40b4

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)