summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-30 16:58:18 +0000
committerChris Lattner <sabre@nondot.org>2004-11-30 16:58:18 +0000
commit37a14496c5b42ba56efe4a3a3263f03f0455b9e2 (patch)
tree5fa36a0e9d3e7b9c0b7c88fb4f52c711a7fea0cb /llvm/lib/Bytecode/Reader/Reader.cpp
parentd7f028e4e3283b25a6d59a44daea1c7058a6394e (diff)
downloadbcm5719-llvm-37a14496c5b42ba56efe4a3a3263f03f0455b9e2.tar.gz
bcm5719-llvm-37a14496c5b42ba56efe4a3a3263f03f0455b9e2.zip
RevisionNum is read by error(), initialize it early.
llvm-svn: 18386
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index e08656822d7..a5e70d911fd 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud