From f2a9b40231f982b10c4d098c60b47da890396c1f Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Tue, 15 Dec 2015 04:05:43 -0700 Subject: more number literal syntax is supported. floats still need work --- src/codegen.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 254e9f4d23..699769f513 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -1254,13 +1254,9 @@ static const NumLit num_lit_kinds[] = { NumLitF32, NumLitF64, NumLitF128, - NumLitI8, NumLitU8, - NumLitI16, NumLitU16, - NumLitI32, NumLitU32, - NumLitI64, NumLitU64, }; @@ -1388,7 +1384,7 @@ static void define_builtin_types(CodeGen *g) { } { TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat); - entry->type_ref = LLVMFloatType(); + entry->type_ref = LLVMDoubleType(); buf_init_from_str(&entry->name, "f64"); entry->size_in_bits = 64; entry->align_in_bits = 64; -- cgit v1.2.3