mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The ABI mismatch here would cause a crash in cases when the Foundation overlay wasn't available, or its implementation of swift_Foundation_getErrorDefaultUserInfo wasn't dynamically resolvable, such as in a stripped statically linked binary. Fixes rdar://problem/29173132.
12 lines
140 B
Objective-C
12 lines
140 B
Objective-C
#include "ErrorBridgedStaticImpl.h"
|
|
|
|
@implementation Foo
|
|
|
|
- (BOOL)foo:(int)x error:(NSError**)error {
|
|
*error = nil;
|
|
return NO;
|
|
}
|
|
|
|
@end
|
|
|