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/CodeGen/CGDebugInfo.cpp | |
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/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1e0eeb2122..90eb861d93 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1235,10 +1235,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty) { } LexicalBlockStack.pop_back(); - llvm::DenseMap<const Decl *, llvm::WeakVH>::iterator RI = - RegionMap.find(Ty->getDecl()); - if (RI != RegionMap.end()) - RegionMap.erase(RI); + RegionMap.erase(Ty->getDecl()); llvm::DIArray Elements = DBuilder.getOrCreateArray(EltTys); // FIXME: Magic numbers ahoy! These should be changed when we |