Displaying 1 result from an estimated 1 matches for "fun_val".
2009 Jan 28
3
[LLVMdev] uses of unwind lead to crashes
...y_env = global i32 0
define i32 @scheme_entry () {
%init_env = bitcast i32* @empty_env to %eframe*
%main = invoke i32 @main_1(%eframe* %init_env) to label %Done unwind
label %Exn
Done:
%fixed = bitcast i32 %main to i32
ret i32 %fixed
Exn:
ret i32 0
}
define i32 @dispatch(%eframe* %env, i32 %fun_val, %packed_args* %args) {
%reg_1 = and i32 %fun_val, 3
%reg_2 = icmp eq i32 %reg_1, 1
br i1 %reg_2, label %L_79, label %L_80
L_80:
store i32 %fun_val, i32* @error_val
store i32 5, i32* @error_code
unwind
L_79:
%reg_3 = and i32 %fun_val, 4294967292
%reg_4 = inttoptr i32 %reg_3 to i32*
%reg_5...