forked from OSchip/llvm-project
parent
b2fa25c8f9
commit
d17dbe9dcd
|
@ -78,12 +78,12 @@ void ValueSymbolTable::insert(Value* V) {
|
|||
// Trim any suffix off.
|
||||
UniqueName.resize(BaseSize);
|
||||
UniqueName += utostr(++LastUnique);
|
||||
// Try insert the vmap entry with this suffix.
|
||||
} while (!vmap.insert(make_pair(UniqueName, V)).second);
|
||||
|
||||
DEBUG(DOUT << " Inserting value: " << UniqueName << ": " << *V << "\n");
|
||||
|
||||
// Insert the vmap entry
|
||||
V->Name = UniqueName;
|
||||
|
||||
DEBUG(DOUT << " Inserted value: " << UniqueName << ": " << *V << "\n");
|
||||
}
|
||||
|
||||
// Remove a value
|
||||
|
|
Loading…
Reference in New Issue