mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
use more specific cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69331f5726
commit
7e6182319d
@ -711,7 +711,7 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds,
|
||||
getBasicBlock(Oprnds[1]),
|
||||
Oprnds.size()/2-1);
|
||||
for (unsigned i = 2, e = Oprnds.size(); i != e; i += 2)
|
||||
I->addCase(cast<Constant>(getValue(iType, Oprnds[i])),
|
||||
I->addCase(cast<ConstantInt>(getValue(iType, Oprnds[i])),
|
||||
getBasicBlock(Oprnds[i+1]));
|
||||
Result = I;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user