[llvm-commits] CVS: llvm/lib/Bytecode/Archive/Archive.cpp

Reid Spencer reid at x10sys.com
Mon Nov 15 22:47:18 PST 2004



Changes in directory llvm/lib/Bytecode/Archive:

Archive.cpp updated: 1.2 -> 1.3
---
Log message:

Per code review:\
* Make sure all members are initialized upon construction

---
Diffs of the changes:  (+2 -1)

Index: llvm/lib/Bytecode/Archive/Archive.cpp
diff -u llvm/lib/Bytecode/Archive/Archive.cpp:1.2 llvm/lib/Bytecode/Archive/Archive.cpp:1.3
--- llvm/lib/Bytecode/Archive/Archive.cpp:1.2	Sun Nov 14 15:56:13 2004
+++ llvm/lib/Bytecode/Archive/Archive.cpp	Tue Nov 16 00:47:07 2004
@@ -124,7 +124,8 @@
 // Archive class. Everything else (default,copy) is deprecated. This just 
 // initializes and maps the file into memory, if requested.
 Archive::Archive(const sys::Path& filename, bool map ) 
-  : archPath(filename), members(), mapfile(0), base(0), symTab(), symTabSize(0)
+  : archPath(filename), members(), mapfile(0), base(0), symTab(), strtab(),
+    symTabSize(0), firstFileOffset(0), modules(), foreignST(0)
 {
   if (map) {
     mapfile = new sys::MappedFile(filename);






More information about the llvm-commits mailing list