Fix typo in IfStmt::EstimateCost()
This commit is contained in:
2
stmt.cpp
2
stmt.cpp
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user