From 2a400f38eda187323d3afe0ca348ccf6e04c7549 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 22 May 2023 09:58:15 +0300 Subject: [PATCH] Fixed ir_VADDR() macro --- ir_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir_builder.h b/ir_builder.h index 05d20bf..19c1877 100644 --- a/ir_builder.h +++ b/ir_builder.h @@ -454,7 +454,7 @@ extern "C" { #define ir_ALLOCA(_size) _ir_ALLOCA(_ir_CTX, (_size)) #define ir_AFREE(_size) _ir_AFREE(_ir_CTX, (_size)) -#define ir_VADDR(_var) ir_emit1(_ir_CTX, _ir_CTX, (_var)) +#define ir_VADDR(_var) ir_emit1(_ir_CTX, IR_OPT(IR_VADDR, IR_ADDR), (_var)) #define ir_VLOAD_B(_var) _ir_VLOAD(_ir_CTX, IR_BOOL, (_var)) #define ir_VLOAD_U8(_var) _ir_VLOAD(_ir_CTX, IR_U8, (_var)) #define ir_VLOAD_U16(_var) _ir_VLOAD(_ir_CTX, IR_U16, (_var))