Skip to content

Commit d4d70d2

Browse files
committed
debug CI 2
1 parent b1eb89f commit d4d70d2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/SILOptimizer/IPO/CrossModuleOptimization.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,24 @@ bool CrossModuleOptimization::canSerializeFunction(
509509
M.reclaimUnresolvedLocalArchetypeDefinitions();
510510
return false;
511511
}
512+
for (SILValue result : inst.getResults()) {
513+
if (!canSerializeType(result->getType())) {
514+
inst.getFunction()->dump();
515+
inst.getFunction()->dump();
516+
M.reclaimUnresolvedLocalArchetypeDefinitions();
517+
assert(false && "Uncaught type!");
518+
return false;
519+
}
520+
}
521+
for (Operand &op : inst.getAllOperands()) {
522+
if (!canSerializeType(op.get()->getType())) {
523+
inst.getFunction()->dump();
524+
inst.getFunction()->dump();
525+
M.reclaimUnresolvedLocalArchetypeDefinitions();
526+
assert(false && "Uncaught operand type!");
527+
return false;
528+
}
529+
}
512530
}
513531
}
514532
M.reclaimUnresolvedLocalArchetypeDefinitions();

0 commit comments

Comments
 (0)