OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6a7a85
)
update comment.
author
Chris Lattner
<sabre@nondot.org>
Wed, 7 Feb 2007 06:25:36 +0000
(06:25 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 7 Feb 2007 06:25:36 +0000
(06:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33992
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/ValueSymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/ValueSymbolTable.cpp
b/lib/VMCore/ValueSymbolTable.cpp
index
142b9f9
..
101212e
100644
(file)
--- a/
lib/VMCore/ValueSymbolTable.cpp
+++ b/
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