Skip to content

Commit a8886e7

Browse files
committed
Delete an incorrect assert
If we consume a value in a block and then reinitialize it before the end of the block, this assert will always fail.
1 parent 578eafd commit a8886e7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/SILOptimizer/Mandatory/SendNonSendable.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,6 @@ class RaceTracer {
13811381
SILBasicBlock * SILBlock, TrackableValueID consumedVal,
13821382
ConsumedReason &consumedReason, unsigned distance,
13831383
std::optional<PartitionOp> targetOp = {}) {
1384-
assert(blockStates[SILBlock].getExitPartition().isConsumed(consumedVal));
13851384
LocalConsumedReason localReason
13861385
= findLocalConsumedReason(SILBlock, consumedVal, targetOp);
13871386
switch (localReason.kind) {

0 commit comments

Comments
 (0)