OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e622723
)
gallivm: Add constructor for raw_debug_ostream.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 4 Aug 2012 21:37:33 +0000
(14:37 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Tue, 7 Aug 2012 05:07:31 +0000
(22:07 -0700)
Fixes uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index
93505f3
..
af50fcc
100644
(file)
--- 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