summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-05 05:27:58 +0000
committerChris Lattner <sabre@nondot.org>2003-09-05 05:27:58 +0000
commit7f8d98776f10f73474716d8c6e1899bb8ff212ab (patch)
treeadb25601b42a0bc5159a0e562e572e1c00ed66db /llvm/lib/Bytecode/Reader/InstructionReader.cpp
parent33d98aebe72e3df15a4a133d2e3b57285d960fe7 (diff)
downloadbcm5719-llvm-7f8d98776f10f73474716d8c6e1899bb8ff212ab.tar.gz
bcm5719-llvm-7f8d98776f10f73474716d8c6e1899bb8ff212ab.zip
Whoa, we were misreading invoke instructions "normal" destinations quite badly.
llvm-svn: 8363
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
index 2ab68bb7b58..c0bccd4c4f2 100644
--- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud