Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update code after rebase
  • Loading branch information
fanyang-mono committed May 7, 2022
commit 6d2c7d5e526e13ab32de04026404691b53524710
6 changes: 3 additions & 3 deletions src/mono/mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3900,8 +3900,8 @@ emit_entry_bb (EmitContext *ctx, LLVMBuilderRef builder)
case LLVMArgVtypeInSIMDReg: {
LLVMValueRef arg = LLVMGetParam (ctx->lmethod, pindex);

ctx->addresses [reg] = build_alloca (ctx, ainfo->type);
LLVMBuildStore (builder, arg, convert (ctx, ctx->addresses [reg], LLVMPointerType (LLVMTypeOf (arg), 0)));
ctx->addresses [reg] = build_alloca_address (ctx, ainfo->type);
LLVMBuildStore (builder, arg, convert (ctx, ctx->addresses [reg]->value, LLVMPointerType (LLVMTypeOf (arg), 0)));
break;
}
case LLVMArgVtypeByVal: {
Expand Down Expand Up @@ -4551,7 +4551,7 @@ process_call (EmitContext *ctx, MonoBasicBlock *bb, LLVMBuilderRef *builder_ref,
break;
}
case LLVMArgVtypeInSIMDReg: {
args [pindex] = LLVMBuildLoad (ctx->builder, addresses [reg], "load_param");
args [pindex] = LLVMBuildLoad2 (ctx->builder, addresses [reg]->type, addresses [reg]->value, "load_param");
break;
}
case LLVMArgVtypeByVal:
Expand Down