swift
[dfe] Change Impl to be a stongly typed PointerUnion instead of a union.
#17462
Merged

[dfe] Change Impl to be a stongly typed PointerUnion instead of a union. #17462

gottesmm
gottesmm7 years ago
No description provided.
gottesmm [dfe] Change Impl to be a stongly typed PointerUnion instead of a union.
27c5366f
gottesmm
gottesmm7 years ago

@swift-ci smoke test

gottesmm gottesmm requested a review from eeckstein eeckstein 7 years ago
gottesmm
gottesmm7 years ago

@eeckstein for when you get back.

gottesmm gottesmm merged fada67ef into master 7 years ago
gottesmm gottesmm deleted the pr-92939fbdadf6a8d47003dd8b04dd863fe3b0d92f branch 7 years ago
jrose-apple
jrose-apple commented on 2018-06-25
lib/SILOptimizer/IPO/DeadFunctionElimination.cpp
320317 return;
321318 mi->methodIsCalled = true;
322319 for (FuncImpl &FImpl : mi->implementingFunctions) {
323 if (FImpl.Impl.Conf) {
324 SILWitnessTable *WT = Module->lookUpWitnessTable(FImpl.Impl.Conf,
325 /*deserializeLazily*/ false);
320
if (auto *Conf = FImpl.Impl.dyn_cast<ProtocolConformance *>()) {
jrose-apple7 years ago

This should be a get also, right?

gottesmm7 years ago

Jordan and I talked about this offline. I explained to him that PointerUnion by default assumes that null values have the first case value. I was trying to be conservative to work around such issues.

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone