nvc0/ir: Initialize NVC0LegalizePostRA member variables.
authorVinson Lee <vlee@freedesktop.org>
Sat, 13 Jul 2013 06:56:06 +0000 (23:56 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 30 Aug 2013 03:42:24 +0000 (20:42 -0700)
Fixes "Uninitialized pointer field" defects reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp

index 5734eda8ac9e4210b65e55184b5ff1af6d7712e4..251e49b8f41813d6b31efbea237a59486a599ef6 100644 (file)
@@ -162,7 +162,9 @@ private:
 };
 
 NVC0LegalizePostRA::NVC0LegalizePostRA(const Program *prog)
-   : needTexBar(prog->getTarget()->getChipset() >= 0xe0)
+   : rZero(NULL),
+     carry(NULL),
+     needTexBar(prog->getTarget()->getChipset() >= 0xe0)
 {
 }