Update naming of enum const.

This commit is contained in:
Christoffer Lerno
2025-03-10 00:15:50 +01:00
parent 25bccf4883
commit ff75f2c21f
13 changed files with 37 additions and 37 deletions

View File

@@ -4752,7 +4752,7 @@ static void llvm_emit_const_expr(GenContext *c, BEValue *be_value, Expr *expr)
return;
}
case CONST_ENUM:
llvm_value_set(be_value, llvm_const_int(c, type, expr->const_expr.enum_err_val->enum_constant.ordinal), type);
llvm_value_set(be_value, llvm_const_int(c, type, expr->const_expr.enum_val->enum_constant.ordinal), type);
return;
case CONST_MEMBER:
case CONST_UNTYPED_LIST: