[sdb] Keep the exception object alive during debugger suspensions. Fixes #12494.
[mono.git] / mono / mini / mini-llvm.c
index 2b41cd3fe952dd63457fb436141ddf022d144c7b..fd822480af158b26346703d6b756b6642d8b67a9 100644 (file)
@@ -2161,7 +2161,6 @@ process_bb (EmitContext *ctx, MonoBasicBlock *bb)
                         * These symbols are not really used, the clause_index is embedded into the EH tables generated by DwarfMonoException in LLVM.
                         */
                        LLVMSetLinkage (type_info, LLVMInternalLinkage);
-                       LLVMSetVisibility (type_info, LLVMHiddenVisibility);
 
                        /* 
                         * Enabling this causes llc to crash:
@@ -3999,7 +3998,7 @@ process_bb (EmitContext *ctx, MonoBasicBlock *bb)
                                else
                                        ctx->lmodule->throw = callee;
                        }
-                       arg = convert (ctx, values [ins->sreg1], type_to_llvm_type (ctx, &mono_get_object_class ()->byval_arg));
+                       arg = convert (ctx, lhs, type_to_llvm_type (ctx, &mono_get_object_class ()->byval_arg));
                        emit_call (ctx, bb, &builder, callee, &arg, 1);
                        break;
                }