[embedded] Implement non-allocating embedded Swift mode, under -no-allocations flag

This commit is contained in:
Kuba Mracek
2023-12-07 16:47:04 -08:00
parent b8b68f0d2e
commit ff1f8adac8
11 changed files with 140 additions and 23 deletions

View File

@@ -16,5 +16,4 @@ precedencegroup AssignmentPrecedence { assignment: true }
public func foo(_ x: AnyObject) {
_ = type(of: x) // expected-error {{cannot use a value of protocol type 'AnyObject' in embedded Swift}}
// expected-note@-1 {{called from here}}
}