You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 28, 2020. It is now read-only.
WebAssembly: properly handle MCBinaryExpr in aliased symbols
Swift uses aliased symbols to refer to offsets within metadata structures.
eg
```
@"$s12SwiftPrivate28_stdlib_ShardedAtomicCounterVN" = alias %swift.type, bitcast (i32* getelementptr inbounds (<{ i8**, i32, <{ i32, i32, i32, i32, i32, i32, i32 }>*, i32, i32 }>, <{ i8**, i32, <{ i32, i32, i32, i32, i32, i32, i32 }>*, i32, i32 }>* @"$s12SwiftPrivate28_stdlib_ShardedAtomicCounterVMf", i32 0, i32 1) to %swift.type*)
```
My previous commit only got the alias to refer to the correct target symbol,
but not at the right offset.
This commit properly emits these symbols.
With this change, print("hello world") works but print() with anything else is still broken.
0 commit comments