[llvm-commits] CVS: llvm/lib/Analysis/AliasSetTracker.cpp
Nick Lewycky
nicholas at mxc.ca
Sun Sep 17 09:23:50 PDT 2006
Changes in directory llvm/lib/Analysis:
AliasSetTracker.cpp updated: 1.41 -> 1.42
---
Log message:
Fix PR912: http://llvm.org/PR912 . The input to erase() must not be a reference to the data
being erased.
---
Diffs of the changes: (+2 -1)
AliasSetTracker.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.41 llvm/lib/Analysis/AliasSetTracker.cpp:1.42
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.41 Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/AliasSetTracker.cpp Sun Sep 17 11:23:36 2006
@@ -374,7 +374,8 @@
++NumRefs;
// Finally, remove the entry.
- PointerMap.erase(P->first);
+ Value *Remove = P->first;
+ PointerMap.erase(Remove);
}
// Stop using the alias set, removing it.
More information about the llvm-commits
mailing list