Open maxomatic458 opened 5 months ago
Looks like bad IR to me. Afaict int_Index_int_int returns a pointer to a local alloca. That pointer is dangling upon the return. See semantics for alloca here: https://llvm.org/docs/LangRef.html#alloca-instruction
this program in IR should exit with code 80
but it will only exit with
80
when the opt level is1
or0
the exit code for
-O2
and-O3
will change every time the IR is compiled