File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,26 @@ bool CrossModuleOptimization::canSerializeFunction(
509
509
M.reclaimUnresolvedLocalArchetypeDefinitions ();
510
510
return false ;
511
511
}
512
+ for (SILValue result : inst.getResults ()) {
513
+ if (!canSerializeType (result->getType ())) {
514
+ inst.dump ();
515
+ result->getType ().dump ();
516
+ inst.getFunction ()->dump ();
517
+ M.reclaimUnresolvedLocalArchetypeDefinitions ();
518
+ assert (false && " Uncaught type!" );
519
+ return false ;
520
+ }
521
+ }
522
+ for (Operand &op : inst.getAllOperands ()) {
523
+ if (!canSerializeType (op.get ()->getType ())) {
524
+ inst.dump ();
525
+ op.get ()->getType ().dump ();
526
+ inst.getFunction ()->dump ();
527
+ M.reclaimUnresolvedLocalArchetypeDefinitions ();
528
+ assert (false && " Uncaught operand type!" );
529
+ return false ;
530
+ }
531
+ }
512
532
}
513
533
}
514
534
M.reclaimUnresolvedLocalArchetypeDefinitions ();
You can’t perform that action at this time.
0 commit comments