aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/SlotCalculator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-10 05:13:03 +0000
committerChris Lattner <sabre@nondot.org>2007-02-10 05:13:03 +0000
commita2bdad49c9c003c6fe7d4416090817a8466f2bb2 (patch)
tree2066a070a05d277ce125580b90129c1bd4674eeb /lib/Bytecode/Writer/SlotCalculator.h
parent8183cf62f6f9631a4a32efc7e27880c475777089 (diff)
getSlot can never fail. Make it assert internally, eliminate checks in
clients. Same for getTypeSlot. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/SlotCalculator.h')
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h
index a8e2210340..0cb6e12937 100644
--- a/lib/Bytecode/Writer/SlotCalculator.h
+++ b/lib/Bytecode/Writer/SlotCalculator.h
@@ -65,7 +65,7 @@ public:
/// getSlot - Return the slot number of the specified value in it's type
/// plane. This returns < 0 on error!
///
- int getSlot(const Value *V) const;
+ unsigned getSlot(const Value *V) const;
int getTypeSlot(const Type* T) const;
inline unsigned getNumPlanes() const { return Table.size(); }