summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-07-12 23:56:06 -0700
committerVinson Lee <[email protected]>2013-08-29 20:42:24 -0700
commit74be77a99e1196d07ebd941aee24313f7aa123c9 (patch)
treeda9a6f77493c18ca3c659a3553d6707c19cb0ad9
parenta479f34025f5f7089f45e9b7da53233db73cdf52 (diff)
nvc0/ir: Initialize NVC0LegalizePostRA member variables.
Fixes "Uninitialized pointer field" defects reported by Coverity. Signed-off-by: Vinson Lee <[email protected]>
-rw-r--r--src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp
index 5734eda8ac9..251e49b8f41 100644
--- a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp
@@ -162,7 +162,9 @@ private:
};
NVC0LegalizePostRA::NVC0LegalizePostRA(const Program *prog)
- : needTexBar(prog->getTarget()->getChipset() >= 0xe0)
+ : rZero(NULL),
+ carry(NULL),
+ needTexBar(prog->getTarget()->getChipset() >= 0xe0)
{
}