mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
fix off-by one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -54,7 +54,7 @@ public:
|
|||||||
unsigned getValueID(const Value *V) const {
|
unsigned getValueID(const Value *V) const {
|
||||||
ValueMapType::const_iterator I = ValueMap.find(V);
|
ValueMapType::const_iterator I = ValueMap.find(V);
|
||||||
assert(I != ValueMap.end() && "Value not in slotcalculator!");
|
assert(I != ValueMap.end() && "Value not in slotcalculator!");
|
||||||
return I->second;
|
return I->second-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned getTypeID(const Type *T) const {
|
unsigned getTypeID(const Type *T) const {
|
||||||
|
Reference in New Issue
Block a user