Skip to content

Commit 6210c2e

Browse files
authored
Merge pull request #74187 from jckarter/moveonly-wrapped-type-eliminator-missing-case
Add missing OpenExistentialAddr no-changes-needed case to MoveOnlyWrappedTypeEliminator.
2 parents 033fc23 + 49aac80 commit 6210c2e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyWrappedTypeEliminator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ struct SILMoveOnlyWrappedTypeEliminatorVisitor
193193
NO_UPDATE_NEEDED(CheckedCastBranch)
194194
NO_UPDATE_NEEDED(Object)
195195
NO_UPDATE_NEEDED(OpenExistentialRef)
196+
NO_UPDATE_NEEDED(OpenExistentialAddr)
196197
NO_UPDATE_NEEDED(ConvertFunction)
197198
NO_UPDATE_NEEDED(RefToBridgeObject)
198199
NO_UPDATE_NEEDED(BridgeObjectToRef)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %target-swift-frontend -emit-sil -verify %s
2+
3+
protocol Foo {
4+
var foo: String { get }
5+
}
6+
7+
func identity(_ a: consuming any Foo) -> String {
8+
return a.foo
9+
}

0 commit comments

Comments
 (0)