Commit ebe921e48f

LemonBoy <thatlemon@gmail.com>
2019-06-04 09:05:12
Make `void` a signed type
Follow the convention set by C so that lldb stops complaining about it.
1 parent 3eca5a4
Changed files (1)
src/codegen.cpp
@@ -7243,7 +7243,7 @@ static void define_builtin_types(CodeGen *g) {
         buf_init_from_str(&entry->name, "void");
         entry->llvm_di_type = ZigLLVMCreateDebugBasicType(g->dbuilder, buf_ptr(&entry->name),
                 0,
-                ZigLLVMEncoding_DW_ATE_unsigned());
+                ZigLLVMEncoding_DW_ATE_signed());
         g->builtin_types.entry_void = entry;
         g->primitive_type_table.put(&entry->name, entry);
     }