summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-24 05:26:04 +0000
committerChris Lattner <sabre@nondot.org>2005-02-24 05:26:04 +0000
commit75f5b4262404ecfd515584666805d94a82a8d31c (patch)
treec31b0a5577edfcfe201083513fa2ec9df48a69c1 /llvm/lib/Bytecode/Reader/Reader.cpp
parentfc824c1a7e122004aea332aac7d4add4d89354b3 (diff)
downloadbcm5719-llvm-75f5b4262404ecfd515584666805d94a82a8d31c.tar.gz
bcm5719-llvm-75f5b4262404ecfd515584666805d94a82a8d31c.zip
use more specific cast.
llvm-svn: 20297
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index 6876cf70b53..0b3cadf0859 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/lib/Bytecode/Reader/Reader.cpp
@@ -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;
OpenPOWER on IntegriCloud