aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-21 23:26:31 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-21 23:26:31 +0100
commit664c2cd7a587feb18f02378506bdade2503343d3 (patch)
tree2c0b5e972eaa2cc74ec67c377a9bd8f6e284b24e /src/codegen
parent33bd3f635f9d98636ab4631fac9cff4e9d7fdb4d (diff)
Fix enum type comparison; Start demo 003 code
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/ssa.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen/ssa.cpp b/src/codegen/ssa.cpp
index b45bbe5d5..959e3faf8 100644
--- a/src/codegen/ssa.cpp
+++ b/src/codegen/ssa.cpp
@@ -1348,9 +1348,8 @@ isize ssa_type_info_index(CheckerInfo *info, Type *type) {
}
}
if (entry_index < 0) {
- gb_printf_err("%s\n", type_to_string(type));
+ compiler_error("Type_Info for `%s` could not be found", type_to_string(type));
}
- GB_ASSERT(entry_index >= 0);
return entry_index;
}