[llvm-commits] CVS: llvm/lib/System/DynamicLibrary.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 12 11:13:24 PDT 2006
Changes in directory llvm/lib/System:
DynamicLibrary.cpp updated: 1.12 -> 1.13
---
Log message:
Fix iterator invalidation bug, identified by Coverity.
---
Diffs of the changes: (+1 -0)
DynamicLibrary.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/System/DynamicLibrary.cpp
diff -u llvm/lib/System/DynamicLibrary.cpp:1.12 llvm/lib/System/DynamicLibrary.cpp:1.13
--- llvm/lib/System/DynamicLibrary.cpp:1.12 Sun Jan 29 22:33:51 2006
+++ llvm/lib/System/DynamicLibrary.cpp Fri May 12 13:13:11 2006
@@ -93,6 +93,7 @@
if (*I == a_handle) {
// Note: don't use the swap/pop_back trick here. Order is important.
OpenedHandles.erase(I);
+ return;
}
}
}
More information about the llvm-commits
mailing list