diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-02-13 15:49:17 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-02-13 15:49:17 +0000 |
commit | 536ffdf51d4fc5b8f796bee8c99a165b13eeecfe (patch) | |
tree | 8f3121a37a6addebccf6aaf0bcb62108c8069eb1 | |
parent | fec328083af1366635d5b5d0ef9d5945d06d82f0 (diff) | |
download | bcm5719-llvm-536ffdf51d4fc5b8f796bee8c99a165b13eeecfe.tar.gz bcm5719-llvm-536ffdf51d4fc5b8f796bee8c99a165b13eeecfe.zip |
Don't copy a DenseMap just to do lookup in it.
Also remove the now unused isPodLike specialization. DenseMap only uses
it for copies.
llvm-svn: 260822
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 836073a680c..e304965562b 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -3531,11 +3531,6 @@ template <> struct DenseMapInfo<CatchHandlerType> { return LHS == RHS; } }; - -// It's OK to treat CatchHandlerType as a POD type. -template <> struct isPodLike<CatchHandlerType> { - static const bool value = true; -}; } namespace { @@ -3560,7 +3555,7 @@ public: bool operator()(const CXXBaseSpecifier *S, CXXBasePath &) { if (S->getAccessSpecifier() == AccessSpecifier::AS_public) { CatchHandlerType Check(S->getType(), CheckAgainstPointer); - auto M = TypesToCheck; + const auto &M = TypesToCheck; auto I = M.find(Check); if (I != M.end()) { FoundHandler = I->second; |