aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/InstructionReader.cpp4
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)