Cleaning up tests and printing for demo

This commit is contained in:
2017-05-11 21:16:08 -04:00
parent 34d26554bf
commit 2921430e45
5 changed files with 17 additions and 17 deletions

View File

@@ -635,7 +635,7 @@ Function::GenerateIR() {
const bool
Function::IsPolyFunction() const {
for (size_t i = 0; i < args.size(); i++) {
if (args[i]->type->IsPolymorphicType()) {
if (args[i] && args[i]->type->IsPolymorphicType()) {
return true;
}
}