From fddc5e022e745946bc8762672c99568aafdc417e Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 6 Feb 2012 10:01:50 -0800 Subject: [PATCH] Fix typo in IfStmt::EstimateCost() --- stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stmt.cpp b/stmt.cpp index 617abfdf..8e90eb3e 100644 --- a/stmt.cpp +++ b/stmt.cpp @@ -427,7 +427,7 @@ IfStmt::TypeCheck() { int IfStmt::EstimateCost() const { const Type *type; - if (test == NULL || (type = test->GetType()) != NULL) + if (test == NULL || (type = test->GetType()) == NULL) return 0; return type->IsUniformType() ? COST_UNIFORM_IF : COST_VARYING_IF;