Skip to content

Commit

Permalink
[mono][llvm] Fix another crash when using opaque pointers. (#88397)
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz authored Jul 5, 2023
1 parent aea45ea commit f22ad38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -7712,7 +7712,7 @@ MONO_RESTORE_WARNING
addresses [ins->sreg1] = build_alloca_address (ctx, t);
g_assert (values [ins->sreg1]);
}
LLVMBuildStore (builder, convert (ctx, values [ins->sreg1], LLVMGetElementType (LLVMTypeOf (addresses [ins->sreg1]->value))), addresses [ins->sreg1]->value);
LLVMBuildStore (builder, convert (ctx, values [ins->sreg1], addresses [ins->sreg1]->type), addresses [ins->sreg1]->value);
addresses [ins->dreg] = addresses [ins->sreg1];
} else {
LLVMTypeRef etype = type_to_llvm_type (ctx, t);
Expand Down

0 comments on commit f22ad38

Please sign in to comment.