Skip to content

Commit 49aac80

Browse files
committed
Add missing OpenExistentialAddr no-changes-needed case to MoveOnlyWrappedTypeEliminator.
Fixes rdar://126875325.
1 parent 74aaf88 commit 49aac80

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)