Mesa (master): gallivm: Add constructor for raw_debug_ostream.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Aug 7 05:08:00 UTC 2012
Module: Mesa
Branch: master
Commit: c3894bc2d5d5eabdc913d88d1fedc552fef074a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3894bc2d5d5eabdc913d88d1fedc552fef074a5
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sat Aug 4 14:37:33 2012 -0700
gallivm: Add constructor for raw_debug_ostream.
Fixes uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: José Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 ++++
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
More information about the mesa-commit
mailing list