use more specific cast.

llvm-svn: 20297
This commit is contained in:
Chris Lattner 2005-02-24 05:26:04 +00:00
parent fc824c1a7e
commit 75f5b42624
1 changed files with 1 additions and 1 deletions

View File

@ -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;