Skip to content

IRGen: Delete dead code #8409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions lib/IRGen/GenExistential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,6 @@ class OpaqueExistentialTypeInfo final :

auto layout = getLayout();

// Use copy-on-write existentials?
if (false && IGF.IGM.getSILModule().getOptions().UseCOWExistentials) {
auto fn = getInitWithCopyBoxedOpaqueExistentialBufferFunction(
IGF.IGM, getLayout(), src.getAddress()->getType());
auto call =
IGF.Builder.CreateCall(fn, {dest.getAddress(), src.getAddress()});
call->setCallingConv(IGF.IGM.DefaultCC);
call->setDoesNotThrow();
return;
}

// Project down to the buffers and ask the witnesses to do a
// copy-initialize.
Address srcBuffer = layout.projectExistentialBuffer(IGF, src);
Expand All @@ -382,17 +371,6 @@ class OpaqueExistentialTypeInfo final :

auto layout = getLayout();

// Use copy-on-write existentials?
if (false && IGF.IGM.getSILModule().getOptions().UseCOWExistentials) {
auto fn = getInitWithTakeBoxedOpaqueExistentialBufferFunction(
IGF.IGM, getLayout(), src.getAddress()->getType());
auto call =
IGF.Builder.CreateCall(fn, {dest.getAddress(), src.getAddress()});
call->setCallingConv(IGF.IGM.DefaultCC);
call->setDoesNotThrow();
return;
}

// Project down to the buffers and ask the witnesses to do a
// take-initialize.
Address srcBuffer = layout.projectExistentialBuffer(IGF, src);
Expand Down