aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-15 18:32:30 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-15 18:32:30 +0000
commitdb88e31e1aad26f1067017a88234e261f369c682 (patch)
treee26b50ca93480b39d06e61124f85ff1584f71a52 /clang/lib/Frontend/InitPreprocessor.cpp
parenteeb7e65c5fca09825cfcd7a24a7670bbcb010cbb (diff)
downloadllvm-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