From 664c2cd7a587feb18f02378506bdade2503343d3 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 21 Sep 2016 23:26:31 +0100 Subject: Fix enum type comparison; Start demo 003 code --- src/codegen/ssa.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/codegen/ssa.cpp') 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; } -- cgit v1.2.3