Skip to content

Commit dfc0c47

Browse files
author
Tony Su
committed
Change parameter type of pos in ir_param()
Signed-off-by: Tony Su <tao.su@intel.com>
1 parent 2be7fbc commit dfc0c47

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ static ir_ref ir_find_aliasing_load(ir_ctx *ctx, ir_ref ref, ir_type type, ir_re
14411441

14421442
/* IR Construction API */
14431443

1444-
ir_ref _ir_PARAM(ir_ctx *ctx, ir_type type, const char* name, ir_ref num)
1444+
ir_ref _ir_PARAM(ir_ctx *ctx, ir_type type, const char* name, int num)
14451445
{
14461446
IR_ASSERT(ctx->control);
14471447
IR_ASSERT(ctx->ir_base[ctx->control].op == IR_START);

ir_builder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ ir_ref _ir_ADD_OFFSET(ir_ctx *ctx, ir_ref addr, uintptr_t offset);
542542
ir_ref _ir_PHI_2(ir_ctx *ctx, ir_ref src1, ir_ref src2);
543543
ir_ref _ir_PHI_N(ir_ctx *ctx, ir_ref n, ir_ref *inputs);
544544
void _ir_PHI_SET_OP(ir_ctx *ctx, ir_ref phi, ir_ref pos, ir_ref src);
545-
ir_ref _ir_PARAM(ir_ctx *ctx, ir_type type, const char* name, ir_ref num);
545+
ir_ref _ir_PARAM(ir_ctx *ctx, ir_type type, const char* name, int num);
546546
ir_ref _ir_VAR(ir_ctx *ctx, ir_type type, const char* name);
547547
ir_ref _ir_CALL(ir_ctx *ctx, ir_type type, ir_ref func);
548548
ir_ref _ir_CALL_1(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1);

0 commit comments

Comments
 (0)