aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-09 12:43:08 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-09 12:43:08 -0500
commit92ffcc84a9d5da32a645321eee8d33c179d03562 (patch)
treeab9e581daac8893d8480f05ad63319378c41d3d1 /src/codegen.cpp
parentfc100d7b3b27bd514dca4e02c160e5b96d4da648 (diff)
downloadzig-92ffcc84a9d5da32a645321eee8d33c179d03562.tar.gz
zig-92ffcc84a9d5da32a645321eee8d33c179d03562.zip
remove the depends_on_compile_var code
cleanup from the decision in commit 8a859afd580f438f549ee69a to remove "unnecessary if statement" error
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 5849bf8e6d..828dba3b64 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -3362,7 +3362,6 @@ static void define_builtin_types(CodeGen *g) {
bool is_signed = info->is_signed;
TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdInt);
- entry->size_depends_on_compile_var = true;
entry->type_ref = LLVMIntType(size_in_bits);
buf_init_from_str(&entry->name, info->name);
@@ -3399,7 +3398,6 @@ static void define_builtin_types(CodeGen *g) {
TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdInt);
entry->type_ref = LLVMIntType(g->pointer_size_bytes * 8);
- entry->size_depends_on_compile_var = true;
const char u_or_i = is_signed ? 'i' : 'u';
buf_resize(&entry->name, 0);
@@ -3455,7 +3453,6 @@ static void define_builtin_types(CodeGen *g) {
{
TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat);
entry->type_ref = LLVMX86FP80Type();
- entry->size_depends_on_compile_var = true;
buf_init_from_str(&entry->name, "c_long_double");
entry->data.floating.bit_count = 80;