Small fixes to eliminate compiler warnings when using clang

This commit is contained in:
Matt Pharr
2013-01-06 12:10:54 -08:00
parent 63dd7d9859
commit 81dbd504aa
3 changed files with 4 additions and 4 deletions

View File

@@ -2315,14 +2315,14 @@ ForeachUniqueStmt::TypeCheck() {
Error(expr->pos, "Iteration domain type in \"foreach_tiled\" loop "
"must be \"varying\" type, not \"%s\".",
type->GetString().c_str());
return false;
return NULL;
}
if (Type::IsBasicType(type) == false) {
Error(expr->pos, "Iteration domain type in \"foreach_tiled\" loop "
"must be an atomic, pointer, or enum type, not \"%s\".",
type->GetString().c_str());
return false;
return NULL;
}
return this;