Hi.
Program:
https://gist.github.com/3428355compiled with clay from master:
>>> clay -O2 ./aaa.clay
executed as:
>>> ./aaa
results in segmentation fault.
MacOS X 10.8, 64 bit.
If I replace record `Backtrace` with its content array (comment lines 10-11, uncomment 12-13), code begins to work fine. If I turn off optimization, code also begins to work fine. This is a minimal example I could get to crash the program. But example is still large, so probably you won't reproduce it.
Note, `showBacktraceMine` is not really called, but content of this function affects code generation. This seems like LLVM bug, right? Or maybe I missed something obvious?
--
Stepa