Closed lambdageek closed 10 years ago
I'm still learning about how LLVM works, so I'm not sure if there is a more general problem here, or if this (rather narrow) fix is sufficient.
Thanks! Hopefully I'll get to this soon.
I started looking at this, and it looks like there might be a deeper problem. Your test case fails both ways, I think - both building an AST from a Module and building a Module from an AST.
This fix is now up on hackage. Thanks!
example: %struct.ps = type { i32, i32 } @fib.p = private unnamed_addr constant %struct.ps { i32 0, i32 1 }, align 4