[llvm-commits] CVS: llvm-test/MultiSource/Applications/hbd/cp.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 13 11:06:55 PDT 2005
Changes in directory llvm-test/MultiSource/Applications/hbd:
cp.cpp updated: 1.2 -> 1.3
---
Log message:
explicitly zero memory, new does not do this
---
Diffs of the changes: (+1 -0)
cp.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm-test/MultiSource/Applications/hbd/cp.cpp
diff -u llvm-test/MultiSource/Applications/hbd/cp.cpp:1.2 llvm-test/MultiSource/Applications/hbd/cp.cpp:1.3
--- llvm-test/MultiSource/Applications/hbd/cp.cpp:1.2 Fri May 13 13:03:14 2005
+++ llvm-test/MultiSource/Applications/hbd/cp.cpp Fri May 13 13:06:41 2005
@@ -15,6 +15,7 @@
void ConstPool::read(Classfile *c, u16 *imports_count) {
if ((constant_pool = new cp_info[(constant_pool_count = get16(c->infile, &c->infile_pos))]) == 0) memerr();
+ constant_pool->tag = 0;
for (int j = 1, i = constant_pool_count - 1; i--;) {
cp_info *cpi = &constant_pool[j++];
cpi->tag = (unsigned char)get8(c->infile, &c->infile_pos);
More information about the llvm-commits
mailing list