diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-07-15 18:32:30 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-07-15 18:32:30 +0000 |
commit | db88e31e1aad26f1067017a88234e261f369c682 (patch) | |
tree | e26b50ca93480b39d06e61124f85ff1584f71a52 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | eeb7e65c5fca09825cfcd7a24a7670bbcb010cbb (diff) | |
download | llvm-db88e31e1aad26f1067017a88234e261f369c682.zip llvm-db88e31e1aad26f1067017a88234e261f369c682.tar.gz llvm-db88e31e1aad26f1067017a88234e261f369c682.tar.bz2 |
ADT: Fix MapVector::erase()
Actually update the changed indexes in the map portion of `MapVector`
when erasing from the middle. Add a unit test that checks for this.
Note that `MapVector::erase()` is a linear time operation (it was and
still is). I'll commit a new method in a moment called
`MapVector::remove_if()` that deletes multiple entries in linear time,
which should be slightly less painful.
llvm-svn: 213084
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions