RevisionNum is read by error(), initialize it early.
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2004 16:58:18 +0000 (16:58 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2004 16:58:18 +0000 (16:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18386 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index e08656822d7fcbec25921a6094434b9b787954f3..a5e70d911fdcf0b58e3a626854d14cef39dd53a4 100644 (file)
@@ -2166,6 +2166,7 @@ void BytecodeReader::ParseBytecode(BufPtr Buf, unsigned Length,
                                    const std::string &ModuleID) {
 
   try {
+    RevisionNum = 0;
     At = MemStart = BlockStart = Buf;
     MemEnd = BlockEnd = Buf + Length;