@@ -275,7 +275,7 @@ fn init_functions_generated_for_function_blocks() {
275
275
target datalayout = "[filtered]"
276
276
target triple = "[filtered]"
277
277
278
- %__vtable_foo = type { %foo* }
278
+ %__vtable_foo = type { void ( %foo*) * }
279
279
%foo = type { i32*, [81 x i8]* }
280
280
281
281
@s = global [81 x i8] zeroinitializer
@@ -412,9 +412,9 @@ fn nested_initializer_pous() {
412
412
%bar = type { i32*, %baz }
413
413
%baz = type { i32*, [81 x i8]* }
414
414
%sideProg = type { [81 x i8]*, %foo }
415
- %__vtable_foo = type { %foo* }
416
- %__vtable_bar = type { %bar* }
417
- %__vtable_baz = type { %baz* }
415
+ %__vtable_foo = type { void ( %foo*) * }
416
+ %__vtable_bar = type { void ( %bar*) * }
417
+ %__vtable_baz = type { void ( %baz*) * }
418
418
419
419
@str = global [81 x i8] c"hello\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
420
420
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -702,7 +702,7 @@ fn local_address() {
702
702
target datalayout = "[filtered]"
703
703
target triple = "[filtered]"
704
704
705
- %__vtable_foo = type { %foo* }
705
+ %__vtable_foo = type { void ( %foo*) * }
706
706
%foo = type { i32*, i16, i16* }
707
707
708
708
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -798,7 +798,7 @@ fn user_init_called_for_variables_on_stack() {
798
798
target datalayout = "[filtered]"
799
799
target triple = "[filtered]"
800
800
801
- %__vtable_foo = type { %foo*, void (%foo*)* }
801
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
802
802
%foo = type { i32*, i16, i16* }
803
803
804
804
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -1103,7 +1103,7 @@ fn stateful_pous_methods_and_structs_get_init_functions() {
1103
1103
1104
1104
%myStruct = type { i32 }
1105
1105
%prog = type {}
1106
- %__vtable_foo = type { %foo*, void (%foo*)* }
1106
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
1107
1107
%foo = type { i32* }
1108
1108
%__vtable_cl = type { void (%cl*)* }
1109
1109
%cl = type { i32* }
@@ -1294,7 +1294,7 @@ fn global_instance() {
1294
1294
1295
1295
%prog = type {}
1296
1296
%foo = type { i32*, [81 x i8]* }
1297
- %__vtable_foo = type { %foo* }
1297
+ %__vtable_foo = type { void ( %foo*) * }
1298
1298
1299
1299
@ps = global [81 x i8] zeroinitializer
1300
1300
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -1418,7 +1418,7 @@ fn aliased_types() {
1418
1418
1419
1419
%prog = type { %foo }
1420
1420
%foo = type { i32*, [81 x i8]* }
1421
- %__vtable_foo = type { %foo* }
1421
+ %__vtable_foo = type { void ( %foo*) * }
1422
1422
1423
1423
@ps = global [81 x i8] zeroinitializer
1424
1424
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -1614,7 +1614,7 @@ fn var_config_aliased_variables_initialized() {
1614
1614
1615
1615
%prog = type { %FB, %FB }
1616
1616
%FB = type { i32*, i32* }
1617
- %__vtable_FB = type { %FB* }
1617
+ %__vtable_FB = type { void ( %FB*) * }
1618
1618
1619
1619
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
1620
1620
@prog_instance = global %prog zeroinitializer
@@ -1748,7 +1748,7 @@ fn var_external_blocks_are_ignored_in_init_functions() {
1748
1748
target datalayout = "[filtered]"
1749
1749
target triple = "[filtered]"
1750
1750
1751
- %__vtable_foo = type { %foo* }
1751
+ %__vtable_foo = type { void ( %foo*) * }
1752
1752
%foo = type { i32* }
1753
1753
1754
1754
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -1836,7 +1836,7 @@ fn ref_to_local_member() {
1836
1836
target datalayout = "[filtered]"
1837
1837
target triple = "[filtered]"
1838
1838
1839
- %__vtable_foo = type { %foo* }
1839
+ %__vtable_foo = type { void ( %foo*) * }
1840
1840
%foo = type { i32*, [81 x i8], [81 x i8]*, [81 x i8]*, [81 x i8]* }
1841
1841
1842
1842
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -1939,7 +1939,7 @@ fn ref_to_local_member_shadows_global() {
1939
1939
target datalayout = "[filtered]"
1940
1940
target triple = "[filtered]"
1941
1941
1942
- %__vtable_foo = type { %foo* }
1942
+ %__vtable_foo = type { void ( %foo*) * }
1943
1943
%foo = type { i32*, [81 x i8], [81 x i8]*, [81 x i8]*, [81 x i8]* }
1944
1944
1945
1945
@s = global [81 x i8] zeroinitializer
@@ -2041,7 +2041,7 @@ fn temporary_variable_ref_to_local_member() {
2041
2041
target datalayout = "[filtered]"
2042
2042
target triple = "[filtered]"
2043
2043
2044
- %__vtable_foo = type { %foo* }
2044
+ %__vtable_foo = type { void ( %foo*) * }
2045
2045
%foo = type { i32*, [81 x i8] }
2046
2046
2047
2047
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -2189,7 +2189,7 @@ fn initializing_method_variables_with_refs() {
2189
2189
target datalayout = "[filtered]"
2190
2190
target triple = "[filtered]"
2191
2191
2192
- %__vtable_foo = type { %foo*, void (%foo*)* }
2192
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2193
2193
%foo = type { i32* }
2194
2194
2195
2195
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -2288,7 +2288,7 @@ fn initializing_method_variables_with_refs_referencing_parent_pou_variable() {
2288
2288
target datalayout = "[filtered]"
2289
2289
target triple = "[filtered]"
2290
2290
2291
- %__vtable_foo = type { %foo*, void (%foo*)* }
2291
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2292
2292
%foo = type { i32*, i32 }
2293
2293
2294
2294
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -2387,7 +2387,7 @@ fn initializing_method_variables_with_refs_referencing_global_variable() {
2387
2387
target datalayout = "[filtered]"
2388
2388
target triple = "[filtered]"
2389
2389
2390
- %__vtable_foo = type { %foo*, void (%foo*)* }
2390
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2391
2391
%foo = type { i32* }
2392
2392
2393
2393
@x = global i32 0
@@ -2486,7 +2486,7 @@ fn initializing_method_variables_with_refs_shadowing() {
2486
2486
target datalayout = "[filtered]"
2487
2487
target triple = "[filtered]"
2488
2488
2489
- %__vtable_foo = type { %foo*, void (%foo*)* }
2489
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2490
2490
%foo = type { i32* }
2491
2491
2492
2492
@x = global i32 0
@@ -2583,7 +2583,7 @@ fn initializing_method_variables_with_alias() {
2583
2583
target datalayout = "[filtered]"
2584
2584
target triple = "[filtered]"
2585
2585
2586
- %__vtable_foo = type { %foo*, void (%foo*)* }
2586
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2587
2587
%foo = type { i32* }
2588
2588
2589
2589
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -2679,7 +2679,7 @@ fn initializing_method_variables_with_reference_to() {
2679
2679
target datalayout = "[filtered]"
2680
2680
target triple = "[filtered]"
2681
2681
2682
- %__vtable_foo = type { %foo*, void (%foo*)* }
2682
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2683
2683
%foo = type { i32* }
2684
2684
2685
2685
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -2782,9 +2782,9 @@ fn methods_call_init_functions_for_their_members() {
2782
2782
target datalayout = "[filtered]"
2783
2783
target triple = "[filtered]"
2784
2784
2785
- %__vtable_foo = type { %foo* }
2785
+ %__vtable_foo = type { void ( %foo*) * }
2786
2786
%foo = type { i32*, i32, i32* }
2787
- %__vtable_bar = type { %bar*, void (%bar*)* }
2787
+ %__vtable_bar = type { void ( %bar*) *, void (%bar*)* }
2788
2788
%bar = type { i32* }
2789
2789
2790
2790
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
@@ -2948,7 +2948,7 @@ fn user_fb_init_is_added_and_called_if_it_exists() {
2948
2948
2949
2949
%prog = type { %foo }
2950
2950
%foo = type { i32*, i16, i16 }
2951
- %__vtable_foo = type { %foo*, void (%foo*)* }
2951
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
2952
2952
2953
2953
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
2954
2954
@prog_instance = global %prog zeroinitializer
@@ -3099,7 +3099,7 @@ fn user_fb_init_in_global_struct() {
3099
3099
%prog = type { %bar }
3100
3100
%bar = type { %foo }
3101
3101
%foo = type { i32*, i16, i16 }
3102
- %__vtable_foo = type { %foo*, void (%foo*)* }
3102
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
3103
3103
3104
3104
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
3105
3105
@prog_instance = global %prog zeroinitializer
@@ -3263,7 +3263,7 @@ fn user_init_called_when_declared_as_external() {
3263
3263
3264
3264
%prog = type { %foo }
3265
3265
%foo = type { i32*, i16, i16 }
3266
- %__vtable_foo = type { %foo*, void (%foo*)* }
3266
+ %__vtable_foo = type { void ( %foo*) *, void (%foo*)* }
3267
3267
3268
3268
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @__init___Test, i8* null }]
3269
3269
@prog_instance = global %prog zeroinitializer
0 commit comments