mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
fix instrumentation features on LLVM versions with typed pointers
Fixes #3970
This commit is contained in:
@@ -396,7 +396,7 @@ gb_internal LLVMValueRef lb_run_instrumentation_pass_insert_call(lbProcedure *p,
|
|||||||
lbValue cc = lb_find_procedure_value_from_entity(m, entity);
|
lbValue cc = lb_find_procedure_value_from_entity(m, entity);
|
||||||
|
|
||||||
LLVMValueRef args[3] = {};
|
LLVMValueRef args[3] = {};
|
||||||
args[0] = p->value;
|
args[0] = LLVMConstPointerCast(p->value, lb_type(m, t_rawptr));
|
||||||
|
|
||||||
if (is_arch_wasm()) {
|
if (is_arch_wasm()) {
|
||||||
args[1] = LLVMConstPointerNull(lb_type(m, t_rawptr));
|
args[1] = LLVMConstPointerNull(lb_type(m, t_rawptr));
|
||||||
|
|||||||
Reference in New Issue
Block a user