From: Ilia Mirkin Date: Sat, 6 Sep 2014 15:30:57 +0000 (-0400) Subject: nvc0/ir: insn can never be null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1792d609007798adbe621048e81a883edb31a199;p=mesa.git nvc0/ir: insn can never be null Reported by Coverity. Signed-off-by: Ilia Mirkin --- 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 b3e1e69b016..f13bab1735f 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) {