File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1379,20 +1379,18 @@ swift::analyzeStaticInitializer(SILValue V,
1379
1379
// If it is not a struct which is a simple type, bail.
1380
1380
if (!isSimpleType (SI->getType (), SI->getModule ()))
1381
1381
return false ;
1382
- return llvm::none_of (SI->getAllOperands (),
1383
- [&](Operand &Op) -> bool {
1384
- return !analyzeStaticInitializer (Op.get (), Insts);
1385
- });
1382
+ return llvm::all_of (SI->getAllOperands (), [&](Operand &Op) -> bool {
1383
+ return analyzeStaticInitializer (Op.get (), Insts);
1384
+ });
1386
1385
}
1387
1386
1388
1387
if (auto *TI = dyn_cast<TupleInst>(V)) {
1389
1388
// If it is not a tuple which is a simple type, bail.
1390
1389
if (!isSimpleType (TI->getType (), TI->getModule ()))
1391
1390
return false ;
1392
- return llvm::none_of (TI->getAllOperands (),
1393
- [&](Operand &Op) -> bool {
1394
- return !analyzeStaticInitializer (Op.get (), Insts);
1395
- });
1391
+ return llvm::all_of (TI->getAllOperands (), [&](Operand &Op) -> bool {
1392
+ return analyzeStaticInitializer (Op.get (), Insts);
1393
+ });
1396
1394
}
1397
1395
1398
1396
if (auto *bi = dyn_cast<BuiltinInst>(V)) {
You can’t perform that action at this time.
0 commit comments