From 2aaef48c5c362bb3e04d0c9cd1e722e21b3755e5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 5 Aug 2016 00:54:05 +0100 Subject: String support --- src/codegen/codegen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/codegen/codegen.cpp') diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index f799497ca..412daae3d 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -1,5 +1,5 @@ #include "ssa.cpp" -#include "print.cpp" +#include "print_llvm.cpp" struct ssaGen { ssaModule module; @@ -7,14 +7,14 @@ struct ssaGen { }; b32 ssa_gen_init(ssaGen *s, Checker *c) { - if (c->error_collector.count != 0) + if (c->error_collector.count > 0) return false; gb_for_array(i, c->parser->files) { AstFile *f = &c->parser->files[i]; - if (f->error_collector.count != 0) + if (f->error_collector.count > 0) return false; - if (f->tokenizer.error_count != 0) + if (f->tokenizer.error_count > 0) return false; } -- cgit v1.2.3