From 8e2185ea07d2c8335b9833c6c01b42acf0aba154 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Sep 2003 05:27:58 +0000 Subject: 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 --- lib/Bytecode/Reader/InstructionReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 2ab68bb7b5..c0bccd4c4f 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) -- cgit v1.2.3-18-g5258