summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-10 05:17:48 +0000
committerChris Lattner <sabre@nondot.org>2007-02-10 05:17:48 +0000
commit832676a772e3a5d85e8dc736b756231921a36e5d (patch)
treece153fb7feb2bfa2458e0945e0e8999bf00b152c /llvm/lib/Bytecode/Writer/SlotCalculator.cpp
parentce57e528f5d76c40540318260ca58fa8691aeab8 (diff)
downloadbcm5719-llvm-832676a772e3a5d85e8dc736b756231921a36e5d.tar.gz
bcm5719-llvm-832676a772e3a5d85e8dc736b756231921a36e5d.zip
getTypeSlot can never fail
llvm-svn: 34129
Diffstat (limited to 'llvm/lib/Bytecode/Writer/SlotCalculator.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/SlotCalculator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
index 1693ec46812..172da73f136 100644
--- a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
+++ b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
@@ -284,10 +284,10 @@ unsigned SlotCalculator::getSlot(const Value *V) const {
return (int)I->second;
}
-int SlotCalculator::getTypeSlot(const Type*T) const {
+unsigned SlotCalculator::getTypeSlot(const Type*T) const {
std::map<const Type*, unsigned>::const_iterator I = TypeMap.find(T);
assert(I != TypeMap.end() && "Type not in slotcalc!");
- return (int)I->second;
+ return I->second;
}
void SlotCalculator::CreateSlotIfNeeded(const Value *V) {
OpenPOWER on IntegriCloud