nv50/ir: fix compilation warning in handleSharedATOM()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 19 Mar 2016 15:52:45 +0000 (16:52 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 19 Mar 2016 16:01:17 +0000 (17:01 +0100)
In release build mode only, op may be used uninitialized because
the assertion has been removed.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp

index 01364b3b7e61095318f6d6a51b946da92f87088c..1c56d16abc81bfa62cbff1b5c90a8e28906f9302 100644 (file)
@@ -1098,6 +1098,7 @@ NVC0LoweringPass::handleSharedATOM(Instruction *atom)
          break;
       default:
          assert(0);
+         return;
       }
 
       Instruction *i =