mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Introduce BuiltinProtocolConformance
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// This source file is part of the Swift.org open source project
|
||||
//
|
||||
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
|
||||
// Copyright (c) 2014 - 2020 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
|
||||
@@ -31,7 +31,7 @@ void SILGenModule::useConformance(ProtocolConformanceRef conformanceRef) {
|
||||
if (auto *inherited = dyn_cast<InheritedProtocolConformance>(conformance))
|
||||
conformance = inherited->getInheritedConformance();
|
||||
|
||||
// Get the normal conformance. If we don't have one, this is a self
|
||||
// Get the normal conformance. If we don't have one, this is a self or builtin
|
||||
// conformance, which we can ignore.
|
||||
auto normal = dyn_cast<NormalProtocolConformance>(
|
||||
conformance->getRootConformance());
|
||||
|
||||
Reference in New Issue
Block a user