mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Better lowering of distinct types. Noreturn function call expr recognized as a "jump" for escape analysis. Preferring "def" in libs. To upper / to lower for ascii. Initial dynlib support.
This commit is contained in:
committed by
Christoffer Lerno
parent
a877d4458c
commit
ddd0497922
@@ -1535,12 +1535,12 @@ void llvm_emit_cast(GenContext *c, CastKind cast_kind, Expr *expr, BEValue *valu
|
||||
{
|
||||
value->value = llvm_emit_extract_value(c, value->value, 1);
|
||||
}
|
||||
value->type = type_usz->canonical;
|
||||
value->type = type_lowering(type_usz);
|
||||
llvm_value_rvalue(c, value);
|
||||
llvm_emit_int_comp_zero(c, value, value, BINARYOP_NE);
|
||||
break;
|
||||
}
|
||||
value->type = to_type;
|
||||
value->type = type_lowering(to_type);
|
||||
}
|
||||
|
||||
static inline void llvm_emit_cast_expr(GenContext *context, BEValue *be_value, Expr *expr)
|
||||
|
||||
Reference in New Issue
Block a user