Skip to content

Commit 7011939

Browse files
authored
Merge pull request #8409 from aschwaighofer/irgen_delete_dead_code
2 parents 5a7aab7 + aa61ae8 commit 7011939

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/IRGen/GenExistential.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -355,17 +355,6 @@ class OpaqueExistentialTypeInfo final :
355355

356356
auto layout = getLayout();
357357

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-
369358
// Project down to the buffers and ask the witnesses to do a
370359
// copy-initialize.
371360
Address srcBuffer = layout.projectExistentialBuffer(IGF, src);
@@ -382,17 +371,6 @@ class OpaqueExistentialTypeInfo final :
382371

383372
auto layout = getLayout();
384373

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-
396374
// Project down to the buffers and ask the witnesses to do a
397375
// take-initialize.
398376
Address srcBuffer = layout.projectExistentialBuffer(IGF, src);

0 commit comments

Comments
 (0)