int main() { int a[3] = {1, 2, 3}; }
thread 'main' panicked at 'not yet implemented: aggregate dynamic initialization', src/ir.rs:211:48
Note: the way LLVM implements this is by storing the array in static memory and then loading it into the stack when the function is called. It also loads 8 bytes at a time regardless of the type of the array (at least on x86_64).
Note: the way LLVM implements this is by storing the array in static memory and then loading it into the stack when the function is called. It also loads 8 bytes at a time regardless of the type of the array (at least on x86_64).