diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-05 05:27:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-05 05:27:58 +0000 |
commit | 8e2185ea07d2c8335b9833c6c01b42acf0aba154 (patch) | |
tree | 3e3ec3ef52d8debc04e59f609a3e500aa9ef95e6 | |
parent | d5caf7c432dcf52fc614b5bcbded6f64df0177a2 (diff) |
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
-rw-r--r-- | lib/Bytecode/Reader/InstructionReader.cpp | 4 |
1 files 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<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) |