File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,24 @@ 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.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
+ }
512
530
}
513
531
}
514
532
M.reclaimUnresolvedLocalArchetypeDefinitions ();
You can’t perform that action at this time.
0 commit comments