diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-24 18:22:12 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-24 18:22:12 +0000 |
commit | 7e42392eb2ea29ddeb6d125417fb4c17d847b5e0 (patch) | |
tree | a97e6cace2a755d86c6aabb0ce9925153028b9f6 /lib/ARCMigrate | |
parent | 790d295ed4938a24012ef9eb7fe296cf320b0fca (diff) |
Simplify some users of DenseMap::erase.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ARCMigrate')
-rw-r--r-- | lib/ARCMigrate/FileRemapper.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ARCMigrate/FileRemapper.cpp b/lib/ARCMigrate/FileRemapper.cpp index 1e97c9eed5..474ce7dcba 100644 --- a/lib/ARCMigrate/FileRemapper.cpp +++ b/lib/ARCMigrate/FileRemapper.cpp @@ -280,10 +280,7 @@ void FileRemapper::resetTarget(Target &targ) { delete oldmem; } else { const FileEntry *toFE = targ.get<const FileEntry *>(); - llvm::DenseMap<const FileEntry *, const FileEntry *>::iterator - I = ToFromMappings.find(toFE); - if (I != ToFromMappings.end()) - ToFromMappings.erase(I); + ToFromMappings.erase(toFE); } } |