diff options
author | Ilia Mirkin <[email protected]> | 2014-09-06 11:30:57 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-09-08 20:06:11 -0400 |
commit | 1792d609007798adbe621048e81a883edb31a199 (patch) | |
tree | a33a14c3a06097568c4156280e54a5aefe63e341 /src/gallium/drivers/nouveau | |
parent | 9ced42b1aaee04734e7ff298a71f3203cc4a1d50 (diff) |
nvc0/ir: insn can never be null
Reported by Coverity.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |