summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-03-19 16:52:45 +0100
committerSamuel Pitoiset <[email protected]>2016-03-19 17:01:17 +0100
commite05492fd7f0e1a9454482a9174f5870b8cb5a41e (patch)
treec76d5af63b6c15ea6c45d1be35603abc422fb1df /src/gallium
parenta100d89d09981d2ebb42a7e4643a48e78db8dfe3 (diff)
nv50/ir: fix compilation warning in handleSharedATOM()
In release build mode only, op may be used uninitialized because the assertion has been removed. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp1
1 files changed, 1 insertions, 0 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 01364b3b7e6..1c56d16abc8 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
@@ -1098,6 +1098,7 @@ NVC0LoweringPass::handleSharedATOM(Instruction *atom)
break;
default:
assert(0);
+ return;
}
Instruction *i =