Fix typo in IfStmt::EstimateCost()

This commit is contained in:
Matt Pharr
2012-02-06 10:01:50 -08:00
parent 2236d53def
commit fddc5e022e

View File

@@ -427,7 +427,7 @@ IfStmt::TypeCheck() {
int int
IfStmt::EstimateCost() const { IfStmt::EstimateCost() const {
const Type *type; const Type *type;
if (test == NULL || (type = test->GetType()) != NULL) if (test == NULL || (type = test->GetType()) == NULL)
return 0; return 0;
return type->IsUniformType() ? COST_UNIFORM_IF : COST_VARYING_IF; return type->IsUniformType() ? COST_UNIFORM_IF : COST_VARYING_IF;