mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Assertion failed when casting argument to enum #1196
This commit is contained in:
@@ -1576,6 +1576,7 @@ void llvm_emit_cast(GenContext *c, CastKind cast_kind, Expr *expr, BEValue *valu
|
||||
llvm_value_set(value, llvm_zext_trunc(c, value->value, llvm_get_type(c, to_type)), to_type);
|
||||
return;
|
||||
}
|
||||
value->type = type_lowering(to_type);
|
||||
return;
|
||||
case CAST_SABOOL:
|
||||
llvm_value_fold_optional(c, value);
|
||||
|
||||
Reference in New Issue
Block a user