Last active
February 26, 2021 05:31
-
-
Save mikdusan/a6d69a71da51680dd09c4af03ab84e7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Foo = struct { | |
a: u32 = 0, | |
b: u32 = 0, | |
c: u32 = 0, | |
d: u32 = 0, | |
e: u32 = 0, | |
f: u32 = 0, | |
g: u32 = 0, | |
}; | |
export fn entry() void { | |
_ = doit(); | |
} | |
fn doit() Foo { return .{}; } | |
pub fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn { | |
while (true) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.ll
to llvmorg-12.0.0-rc2 tools such asllc
orllvm-as
and the following error result:and the IR of our entry() and doit() methods look like this: