From 3af4b4fe78c55a2bfe47fe39d45a7e36e68405bb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 30 Nov 2004 16:58:18 +0000 Subject: [PATCH] RevisionNum is read by error(), initialize it early. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18386 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index e08656822d7..a5e70d911fd 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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;