We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87b0ca4 + 50b50af commit f6124c3Copy full SHA for f6124c3
lib/SILOptimizer/Mandatory/MoveOnlyWrappedTypeEliminator.cpp
@@ -234,6 +234,7 @@ struct SILMoveOnlyWrappedTypeEliminatorVisitor
234
NO_UPDATE_NEEDED(BridgeObjectToRef)
235
NO_UPDATE_NEEDED(BeginAccess)
236
NO_UPDATE_NEEDED(EndAccess)
237
+ NO_UPDATE_NEEDED(EndCOWMutationAddr)
238
NO_UPDATE_NEEDED(ClassMethod)
239
NO_UPDATE_NEEDED(FixLifetime)
240
NO_UPDATE_NEEDED(AddressToPointer)
test/SILOptimizer/span.swift
@@ -0,0 +1,8 @@
1
+// RUN: %target-swift-frontend %s -parse-as-library -disable-availability-checking -emit-ir -o /dev/null
2
+
3
+// Check that the MoveOnlyWrappedTypeEliminator doesn't crash
4
+func consumingArray(_ arr: consuming [Int]) {
5
+ let s = arr.mutableSpan;
6
+ _ = consume s
7
+}
8
0 commit comments