summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-08-04 14:37:33 -0700
committerVinson Lee <vlee@freedesktop.org>2012-08-06 22:07:31 -0700
commitc3894bc2d5d5eabdc913d88d1fedc552fef074a5 (patch)
treede23da4aa570cb610830eea50552eeef0bbb55f2 /src/gallium/auxiliary/gallivm
parente6227239186fa1d14beb9e18cd4dc596eb8747e6 (diff)
downloadexternal_mesa3d-c3894bc2d5d5eabdc913d88d1fedc552fef074a5.zip
external_mesa3d-c3894bc2d5d5eabdc913d88d1fedc552fef074a5.tar.gz
external_mesa3d-c3894bc2d5d5eabdc913d88d1fedc552fef074a5.tar.bz2
gallivm: Add constructor for raw_debug_ostream.
Fixes uninitialized scalar field defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 93505f3..af50fcc 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -81,8 +81,12 @@ lp_check_alignment(const void *ptr, unsigned alignment)
class raw_debug_ostream :
public llvm::raw_ostream
{
+private:
uint64_t pos;
+public:
+ raw_debug_ostream() : pos(0) { }
+
void write_impl(const char *Ptr, size_t Size);
#if HAVE_LLVM >= 0x207