@@ -355,17 +355,6 @@ class OpaqueExistentialTypeInfo final :
355
355
356
356
auto layout = getLayout ();
357
357
358
- // Use copy-on-write existentials?
359
- if (false && IGF.IGM .getSILModule ().getOptions ().UseCOWExistentials ) {
360
- auto fn = getInitWithCopyBoxedOpaqueExistentialBufferFunction (
361
- IGF.IGM , getLayout (), src.getAddress ()->getType ());
362
- auto call =
363
- IGF.Builder .CreateCall (fn, {dest.getAddress (), src.getAddress ()});
364
- call->setCallingConv (IGF.IGM .DefaultCC );
365
- call->setDoesNotThrow ();
366
- return ;
367
- }
368
-
369
358
// Project down to the buffers and ask the witnesses to do a
370
359
// copy-initialize.
371
360
Address srcBuffer = layout.projectExistentialBuffer (IGF, src);
@@ -382,17 +371,6 @@ class OpaqueExistentialTypeInfo final :
382
371
383
372
auto layout = getLayout ();
384
373
385
- // Use copy-on-write existentials?
386
- if (false && IGF.IGM .getSILModule ().getOptions ().UseCOWExistentials ) {
387
- auto fn = getInitWithTakeBoxedOpaqueExistentialBufferFunction (
388
- IGF.IGM , getLayout (), src.getAddress ()->getType ());
389
- auto call =
390
- IGF.Builder .CreateCall (fn, {dest.getAddress (), src.getAddress ()});
391
- call->setCallingConv (IGF.IGM .DefaultCC );
392
- call->setDoesNotThrow ();
393
- return ;
394
- }
395
-
396
374
// Project down to the buffers and ask the witnesses to do a
397
375
// take-initialize.
398
376
Address srcBuffer = layout.projectExistentialBuffer (IGF, src);
0 commit comments