Module: Mesa
Branch: master
Commit: 1792d609007798adbe621048e81a883edb31a199
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1792d609007798adbe621048e81a883edb31a199

Author: Ilia Mirkin <[email protected]>
Date:   Sat Sep  6 11:30:57 2014 -0400

nvc0/ir: insn can never be null

Reported by Coverity.

Signed-off-by: Ilia Mirkin <[email protected]>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp 
b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
index b3e1e69..f13bab1 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
@@ -150,7 +150,7 @@ NVC0LegalizePostRA::findOverwritingDefs(const Instruction 
*texi,
    while (insn->op == OP_MOV && insn->getDef(0)->equals(insn->getSrc(0)))
       insn = insn->getSrc(0)->getUniqueInsn();
 
-   if (!insn || !insn->bb->reachableBy(texi->bb, term))
+   if (!insn->bb->reachableBy(texi->bb, term))
       return;
 
    switch (insn->op) {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to