HomePhabricator

[ADT] fail-fast iterators for DenseMap

Description

[ADT] fail-fast iterators for DenseMap

This patch was landed in r231035 and reverted because it was buggy.
This is fixed version of the same change.

Summary:
This patch is an attempt at making DenseMapIterators "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

Details

Committed
sanjoyMar 3 2015, 12:46 PM
Reviewer
chandlerc
Differential Revision
D7931: RFC: fail-fast iterators for DenseMap
Parents
rL231124: Fix program name in "clang -help"
Branches
Unknown
Tags
Unknown