aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-04-01 17:46:31 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-04-02 18:31:18 -0400
commitd3f2fe2cef7de1173a038365f91e8a574a08f21a (patch)
tree51c8833d1ebcc92460fb1ee2eb3b05060fc97f4d /src/codegen.cpp
parent3dc8448680cfea2b55a6064c655e400e31e5d3dd (diff)
downloadzig-d3f2fe2cef7de1173a038365f91e8a574a08f21a.tar.gz
zig-d3f2fe2cef7de1173a038365f91e8a574a08f21a.zip
remove the lazy value stuff
let's try to keep this branch to solving one problem at a time
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index f5b15bbeb4..476efd53c1 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -3358,8 +3358,6 @@ static bool value_is_all_undef_array(ConstExprValue *const_val, size_t len) {
static bool value_is_all_undef(ConstExprValue *const_val) {
switch (const_val->special) {
- case ConstValSpecialLazy:
- zig_unreachable();
case ConstValSpecialRuntime:
return false;
case ConstValSpecialUndef:
@@ -5824,7 +5822,6 @@ static LLVMValueRef gen_const_ptr_union_recursive(CodeGen *g, ConstExprValue *un
static LLVMValueRef pack_const_int(CodeGen *g, LLVMTypeRef big_int_type_ref, ConstExprValue *const_val) {
switch (const_val->special) {
- case ConstValSpecialLazy:
case ConstValSpecialRuntime:
zig_unreachable();
case ConstValSpecialUndef:
@@ -6082,7 +6079,6 @@ static LLVMValueRef gen_const_val(CodeGen *g, ConstExprValue *const_val, const c
assert(type_has_bits(type_entry));
switch (const_val->special) {
- case ConstValSpecialLazy:
case ConstValSpecialRuntime:
zig_unreachable();
case ConstValSpecialUndef:
@@ -8249,7 +8245,7 @@ static void gen_root_source(CodeGen *g) {
}
Tld *panic_tld = find_decl(g, &get_container_scope(import_with_panic)->base, buf_create_from_str("panic"));
assert(panic_tld != nullptr);
- resolve_top_level_decl(g, panic_tld, nullptr, false);
+ resolve_top_level_decl(g, panic_tld, nullptr);
}