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

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 16 11:56:16 PDT 2004



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.134 -> 1.135
---
Log message:

Do not erroneously accept revision 6 bytecode files when the format hasn't 
been defined yet!


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

Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.134 llvm/lib/Bytecode/Reader/Reader.cpp:1.135
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.134	Sat Oct 16 13:18:13 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Sat Oct 16 13:56:02 2004
@@ -2031,12 +2031,13 @@
     // 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 @@
     // removed in version 5.
     hasUnnecessaryModuleBlockId = true;
 
-    // FALL THROUGH
-
-  case 6:              // LLVM 1.4 (Released)
-    break;
   default:
     error("Unknown bytecode version number: " + itostr(RevisionNum));
   }






More information about the llvm-commits mailing list