mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Fix problem where a $$FUNC would return "<GLOBAL>" when evaluated for a static in a function #1236.
This commit is contained in:
@@ -84,10 +84,9 @@ fn int main()
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
@init.foo = internal unnamed_addr global ptr @"test.$global$lambda1", align 8
|
||||
@init.foo.2 = internal unnamed_addr global ptr @"test.$global$lambda2", align 8
|
||||
@init.foo = internal unnamed_addr global ptr @"test.foo_fn$lambda1", align 8
|
||||
@init.foo.2 = internal unnamed_addr global ptr @"test.foo_fn$lambda2", align 8
|
||||
|
||||
; Function Attrs:
|
||||
define void @test.Foo.test(ptr %0, i32 %1) #0 {
|
||||
entry:
|
||||
%2 = load ptr, ptr %0, align 8
|
||||
@@ -95,7 +94,6 @@ entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs:
|
||||
define void @test.FooTest.init(ptr %0) #0 {
|
||||
entry:
|
||||
%1 = load ptr, ptr @init.foo, align 8
|
||||
@@ -103,7 +101,7 @@ entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
define internal void @"test.$global$lambda1"(ptr %0, i32 %1) #0 {
|
||||
define internal void @"test.foo_fn$lambda1"(ptr %0, i32 %1) #0 {
|
||||
entry:
|
||||
%z = alloca ptr, align 8
|
||||
store ptr %0, ptr %z, align 8
|
||||
@@ -121,8 +119,7 @@ if.exit: ; preds = %entry
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs:
|
||||
define internal void @"test.$global$lambda2"(ptr %0, i32 %1) #0 {
|
||||
define internal void @"test.foo_fn$lambda2"(ptr %0, i32 %1) #0 {
|
||||
entry:
|
||||
%z = alloca ptr, align 8
|
||||
store ptr %0, ptr %z, align 8
|
||||
|
||||
Reference in New Issue
Block a user