From: Chris Lattner Date: Fri, 5 Sep 2003 05:27:58 +0000 (+0000) Subject: Whoa, we were misreading invoke instructions "normal" destinations quite badly. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8e2185ea07d2c8335b9833c6c01b42acf0aba154;p=oota-llvm.git Whoa, we were misreading invoke instructions "normal" destinations quite badly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8363 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 2ab68bb7b58..c0bccd4c4f2 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/lib/Bytecode/Reader/InstructionReader.cpp @@ -302,7 +302,7 @@ bool BytecodeParser::ParseInstruction(const unsigned char *&Buf, if (Raw.NumOperands < 3) return true; Normal = cast(getValue(Type::LabelTy, Raw.Arg2)); - if (Raw.NumOperands == 3) + if (Raw.NumOperands == 3) Except = cast(getValue(Type::LabelTy, Raw.Arg3)); else { Except = cast(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(getValue(Type::LabelTy, args[0])); + Normal = cast(getValue(Type::LabelTy, args[1])); Except = cast(getValue(Type::LabelTy, args[2])); if ((args.size() & 1) != 0)