mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Handle protocol inheritance. Allow overlapping protocol methods. Remove the need for &self in protocol declarations. Fix cast rules for protocol. Fix cast rules for bitstruct #1034.
This commit is contained in:
committed by
Christoffer Lerno
parent
99cfaa1583
commit
312a39ee24
@@ -1445,6 +1445,9 @@ void llvm_emit_cast(GenContext *c, CastKind cast_kind, Expr *expr, BEValue *valu
|
||||
value->value = LLVMBuildIsNotNull(c->builder, value->value, "ptrbool");
|
||||
value->kind = BE_BOOLEAN;
|
||||
break;
|
||||
case CAST_BSINTARR:
|
||||
case CAST_INTARRBS:
|
||||
break;
|
||||
case CAST_BOOLINT:
|
||||
llvm_value_rvalue(c, value);
|
||||
value->value = LLVMBuildZExt(c->builder, value->value, llvm_get_type(c, to_type), "boolsi");
|
||||
|
||||
Reference in New Issue
Block a user