diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-03-02 23:29:37 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-03-02 23:29:37 +0000 |
commit | 30d65c18dc657ce6867093ee14649f11e20f0025 (patch) | |
tree | 157a0f83133e4c37f99c5c532e8c1ddbf27e6ca4 /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
parent | 21abdf983a5fe060307e544dcee3cff888436304 (diff) | |
download | llvm-30d65c18dc657ce6867093ee14649f11e20f0025.zip llvm-30d65c18dc657ce6867093ee14649f11e20f0025.tar.gz llvm-30d65c18dc657ce6867093ee14649f11e20f0025.tar.bz2 |
[ADT] fail-fast iterators for DenseMap
Summary:
This patch is an attempt at making `DenseMapIterator`s "fail-fast".
Fail-fast iterators that have been invalidated due to insertion into
the host `DenseMap` deterministically trip an assert (in debug mode)
on access, instead of non-deterministically hitting memory corruption
issues.
Reviewers: dexonsmith, dberlin, ruiu, chandlerc
Reviewed By: chandlerc
Subscribers: yaron.keren, chandlerc, llvm-commits
Differential Revision: http://reviews.llvm.org/D7931
llvm-svn: 231035
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions