EmbeddedRuntime: add swift_willThrow

This commit is contained in:
Erik Eckstein
2023-10-31 20:00:39 +01:00
parent de6edc70e8
commit c8db45907f
2 changed files with 6 additions and 1 deletions

View File

@@ -270,3 +270,8 @@ public func swift_once(predicate: UnsafeMutablePointer<Int>, fn: (@convention(c)
public func swift_deletedMethodError() -> Never {
Builtin.int_trap()
}
@_silgen_name("swift_willThrow")
public func swift_willThrow() throws {
}

View File

@@ -10,4 +10,4 @@ public func test() {
}
}
// CHECK-NOT: swift_willThrow
// CHECK: swift_willThrow