diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-23 21:23:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-23 21:23:41 +0000 |
commit | 1e93f5b8f484f48de2f07f979fe81756389bbc20 (patch) | |
tree | 76ceef2ddc82a0327a672b35743640879ea1bd46 /llvm/lib/Bitcode | |
parent | 98f713141ace83f6d21c4c0860357c4726a69764 (diff) | |
download | bcm5719-llvm-1e93f5b8f484f48de2f07f979fe81756389bbc20.tar.gz bcm5719-llvm-1e93f5b8f484f48de2f07f979fe81756389bbc20.zip |
fix off-by one
llvm-svn: 36377
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.h b/llvm/lib/Bitcode/Writer/ValueEnumerator.h index f407a267931..89f64f43063 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.h +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.h @@ -54,7 +54,7 @@ public: unsigned getValueID(const Value *V) const { ValueMapType::const_iterator I = ValueMap.find(V); assert(I != ValueMap.end() && "Value not in slotcalculator!"); - return I->second; + return I->second-1; } unsigned getTypeID(const Type *T) const { |