From 972b4dccaf554b2e9940293f2df55a16ef34fb66 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 10 Feb 2007 05:17:48 +0000 Subject: getTypeSlot can never fail git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34129 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/SlotCalculator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Writer/SlotCalculator.cpp') diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 1693ec4681..172da73f13 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/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_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) { -- cgit v1.2.3