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:
76ff2c7
)
Fix an iterator invalidation problem in code used by the -strip pass
author
Chris Lattner
<sabre@nondot.org>
Mon, 31 Oct 2005 18:42:37 +0000
(18:42 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 31 Oct 2005 18:42:37 +0000
(18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24124
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/SymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/SymbolTable.cpp
b/lib/VMCore/SymbolTable.cpp
index
3290fbd
..
3ac8ddf
100644
(file)
--- a/
lib/VMCore/SymbolTable.cpp
+++ b/
lib/VMCore/SymbolTable.cpp
@@
-269,12
+269,12
@@
bool SymbolTable::strip() {
value_iterator B = Plane.begin(), Bend = Plane.end();
while (B != Bend) { // Found nonempty type plane!
Value *V = B->second;
+ ++B;
if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasInternalLinkage()) {
// Set name to "", removing from symbol table!
V->setName("");
RemovedSymbol = true;
}
- ++B;
}
}