aboutsummaryrefslogtreecommitdiff
path: root/unittests/ADT/SparseBitVectorTest.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-03-02 01:26:46 +0000
committerDan Gohman <gohman@apple.com>2012-03-02 01:26:46 +0000
commit70e2968866aa09b4c164db77d310f5d43a588227 (patch)
tree526b588e19e2174a720101d1b87e7b00707d043b /unittests/ADT/SparseBitVectorTest.cpp
parent22cc4ccc9ea4a45d1f529c1bf48d61a88d3615de (diff)
Fix an iterator invalidation problem. operator[] on a DenseMap
can insert a new element, invalidating iterators. Use find instead, and handle the case where the key is not found explicitly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/SparseBitVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions