mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
EmbeddedRuntime: add swift_willThrow
This commit is contained in:
@@ -270,3 +270,8 @@ public func swift_once(predicate: UnsafeMutablePointer<Int>, fn: (@convention(c)
|
|||||||
public func swift_deletedMethodError() -> Never {
|
public func swift_deletedMethodError() -> Never {
|
||||||
Builtin.int_trap()
|
Builtin.int_trap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@_silgen_name("swift_willThrow")
|
||||||
|
public func swift_willThrow() throws {
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ public func test() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-NOT: swift_willThrow
|
// CHECK: swift_willThrow
|
||||||
|
|||||||
Reference in New Issue
Block a user