diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:56:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:56:02 +0000 |
commit | 2e7ec128f96cc5c5fc44393101f696df137f09dd (patch) | |
tree | 6453fb2691e0965f305381ce1ac0fdcab1064e09 /lib/Bytecode/Reader/Reader.cpp | |
parent | 9b3b04f82b0139e7039713fc6541f2acbef4cc62 (diff) |
Do not erroneously accept revision 6 bytecode files when the format hasn't
been defined yet!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 71ce17da5d..3501d87758 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -2031,12 +2031,13 @@ void BytecodeReader::ParseVersionInfo() { // In version 4 and above, we did not include the 'unreachable' instruction // in the opcode numbering in the bytecode file. hasNoUnreachableInst = true; + break; // FALL THROUGH case 5: // 1.x.x (Not Released) - // FIXME: NONE of this is implemented yet! break; + // FIXME: NONE of this is implemented yet! // In version 5, basic blocks have a minimum index of 0 whereas all the // other primitives have a minimum index of 1 (because 0 is the "null" @@ -2053,10 +2054,6 @@ void BytecodeReader::ParseVersionInfo() { // removed in version 5. hasUnnecessaryModuleBlockId = true; - // FALL THROUGH - - case 6: // LLVM 1.4 (Released) - break; default: error("Unknown bytecode version number: " + itostr(RevisionNum)); } |