Allow sysv and win64 calling conventions to be used on any platform on amd64

This commit is contained in:
gingerBill
2022-02-16 16:03:49 +00:00
parent 42ad54c28e
commit db6bd9b358
8 changed files with 60 additions and 35 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ void lb_begin_procedure_body(lbProcedure *p) {
}
LLVMValueRef debug_storage_value = value;
if (original_value != value && LLVMIsALoadInst(value)) {
debug_storage_value = ptr.value;
debug_storage_value = LLVMGetOperand(value, 0);
}
lb_add_debug_param_variable(p, debug_storage_value, e->type, e->token, param_index+1, block);
}