mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Remove linkage parameter from SILModule::createWitnessTableDeclaration()
All callers were doing the same thing here, so move it inside the function. Also, change getRootNormalConformance(), which is deprecated, to getRootConformance().
This commit is contained in:
@@ -217,9 +217,7 @@ void SILLinkerVisitor::visitProtocolConformance(
|
||||
// If we don't find any witness table for the conformance, bail and return
|
||||
// false.
|
||||
if (!WT) {
|
||||
Mod.createWitnessTableDeclaration(
|
||||
C, getLinkageForProtocolConformance(
|
||||
C->getRootNormalConformance(), NotForDefinition));
|
||||
Mod.createWitnessTableDeclaration(C);
|
||||
|
||||
// Adding the declaration may allow us to now deserialize the body.
|
||||
// Force the body if we must deserialize this witness table.
|
||||
|
||||
Reference in New Issue
Block a user