mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
d5caf7c432
commit
8e2185ea07
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user