Whoa, we were misreading invoke instructions "normal" destinations quite badly.
authorChris Lattner <sabre@nondot.org>
Fri, 5 Sep 2003 05:27:58 +0000 (05:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Sep 2003 05:27:58 +0000 (05:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8363 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/InstructionReader.cpp

index 2ab68bb7b585db3e5c07df3911e8ebc03aa3cbfa..c0bccd4c4f237fc16cf561da2ddc61dcfde52f25 100644 (file)
@@ -302,7 +302,7 @@ bool BytecodeParser::ParseInstruction(const unsigned char *&Buf,
       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 @@ bool BytecodeParser::ParseInstruction(const unsigned char *&Buf,
     } 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)