mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Work on getting typeof up and running. Try-else now works.
This commit is contained in:
@@ -10,6 +10,8 @@ static inline LLVMTypeRef gencontext_create_basic_llvm_type(GenContext *context,
|
||||
{
|
||||
switch (type->type_kind)
|
||||
{
|
||||
case TYPE_META_TYPE:
|
||||
return LLVMIntTypeInContext(context->context, type->builtin.bitsize);
|
||||
case TYPE_BOOL:
|
||||
return LLVMInt1TypeInContext(context->context);
|
||||
case TYPE_I8:
|
||||
|
||||
Reference in New Issue
Block a user