mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix linkage of 'static inline' Clang-imported definitions
If an external SIL function has a Clang-generated body, I think this means we have a static function, and we want to use Shared linkage, not Public. Add a new flag to SILFunction for this and plumb it through to appease assertions from SILVerifier. Swift SVN r31763
This commit is contained in:
@@ -4,8 +4,14 @@
|
||||
- (Ansible*)initWithBellsOn:(id)theBells;
|
||||
@end
|
||||
|
||||
Ansible *NSAnse(Ansible *x) {
|
||||
static Ansible *NSAnse(Ansible *x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
Ansible *NSAnseExternal(Ansible *x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
void hasNoPrototype();
|
||||
|
||||
static void staticForwardDeclaration(void);
|
||||
|
||||
Reference in New Issue
Block a user