From d17dbe9dcd0837dbd01adb1d123891222e9ca3d0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 7 Feb 2007 06:25:36 +0000 Subject: update comment. llvm-svn: 33992 --- llvm/lib/VMCore/ValueSymbolTable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/VMCore') diff --git a/llvm/lib/VMCore/ValueSymbolTable.cpp b/llvm/lib/VMCore/ValueSymbolTable.cpp index 142b9f9f085..101212eaa66 100644 --- a/llvm/lib/VMCore/ValueSymbolTable.cpp +++ b/llvm/lib/VMCore/ValueSymbolTable.cpp @@ -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 -- cgit v1.2.3