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

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 5 00:36:17 PDT 2003


Changes in directory llvm/lib/Bytecode/Reader:

ReadInst.cpp updated: 1.44 -> 1.45

---
Log message:

Whoa, we were misreading invoke instructions "normal" destinations quite badly.



---
Diffs of the changes:

Index: llvm/lib/Bytecode/Reader/ReadInst.cpp
diff -u llvm/lib/Bytecode/Reader/ReadInst.cpp:1.44 llvm/lib/Bytecode/Reader/ReadInst.cpp:1.45
--- llvm/lib/Bytecode/Reader/ReadInst.cpp:1.44	Sat Aug 23 18:14:52 2003
+++ llvm/lib/Bytecode/Reader/ReadInst.cpp	Fri Sep  5 00:27:58 2003
@@ -302,7 +302,7 @@
       if (Raw.NumOperands < 3) return true;
 
       Normal = cast<BasicBlock>(getValue(Type::LabelTy, Raw.Arg2));
-      if (Raw.NumOperands ==  3)
+      if (Raw.NumOperands == 3)
         Except = cast<BasicBlock>(getValue(Type::LabelTy, Raw.Arg3));
       else {
         Except = cast<BasicBlock>(getValue(Type::LabelTy, args[0]));
@@ -318,7 +318,7 @@
     } else {
       if (args.size() < 4) return true;
 
-      Normal = cast<BasicBlock>(getValue(Type::LabelTy, args[0]));
+      Normal = cast<BasicBlock>(getValue(Type::LabelTy, args[1]));
       Except = cast<BasicBlock>(getValue(Type::LabelTy, args[2]));
 
       if ((args.size() & 1) != 0)





More information about the llvm-commits mailing list