[Mesa-dev] [PATCH] gallivm: Add constructor for raw_debug_ostream.

Jose Fonseca jfonseca at vmware.com
Sun Aug 5 00:10:35 PDT 2012


Looks good. Thanks.

Jose

----- Original Message -----
> Fixes uninitialized scalar field defect reported by Coverity.
> 
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> 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
> --
> 1.7.11.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list