Revert SE-0283 (#34492)

Reverted despite build failures.
This commit is contained in:
Alejandro Alonso
2020-10-29 20:32:06 -04:00
committed by GitHub
parent 142b726708
commit 424802fb34
55 changed files with 100 additions and 3033 deletions

View File

@@ -2,7 +2,7 @@
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
@@ -220,11 +220,6 @@ SILModule::lookUpWitnessTable(const ProtocolConformance *C,
SILWitnessTable *wtable;
auto rootC = C->getRootConformance();
// Builtin conformances don't have witness tables in SIL.
if (isa<BuiltinProtocolConformance>(rootC))
return nullptr;
// Attempt to lookup the witness table from the table.
auto found = WitnessTableMap.find(rootC);
if (found == WitnessTableMap.end()) {