mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't hardcode the function representation of builtin "once". Make emitLazyGlobalInitializer retrieve the convention from getBuiltinValueDecl.
This commit is contained in:
@@ -54,5 +54,5 @@ extension A {
|
||||
// CHECK: store i64 {{.*}}, i64* getelementptr inbounds ([[INT]], [[INT]]* @_T07globals2g0Sivp, i32 0, i32 0), align 8
|
||||
|
||||
// FIXME: give these initializers a real mangled name
|
||||
// CHECK: define internal swiftcc void @globalinit_{{.*}}func0() {{.*}} {
|
||||
// CHECK: define internal void @globalinit_{{.*}}func0() {{.*}} {
|
||||
// CHECK: store i64 5, i64* getelementptr inbounds (%TSi, %TSi* @_T07globals1AV3fooSivpZ, i32 0, i32 0), align 8
|
||||
|
||||
Reference in New Issue
Block a user