File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1387,15 +1387,12 @@ class TransferRequireAccumulator {
1387
1387
// consumption does not correspond to an apply expression
1388
1388
return false ;
1389
1389
auto isolationCrossing = apply->getIsolationCrossing ();
1390
- if (!isolationCrossing) {
1391
- assert (false && " ApplyExprs should be transferring only if"
1392
- " they are isolation crossing" );
1393
- return false ;
1394
- }
1390
+ assert (isolationCrossing && " ApplyExprs should be transferring only if "
1391
+ " they are isolation crossing" );
1392
+
1395
1393
auto argExpr = transferOp.getSourceExpr ();
1396
- if (!argExpr)
1397
- assert (false &&
1398
- " sourceExpr should be populated for ApplyExpr consumptions" );
1394
+ assert (argExpr &&
1395
+ " sourceExpr should be populated for ApplyExpr consumptions" );
1399
1396
1400
1397
sourceInst->getFunction ()
1401
1398
->getASTContext ()
You can’t perform that action at this time.
0 commit comments