summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-05-21 00:12:53 +0000
committerReid Kleckner <reid@kleckner.net>2015-05-21 00:12:53 +0000
commitb4a26ed58e615a86721f38640864324ed4555bd1 (patch)
tree5c44dec020ef9a7f97a303dd18d9b3a9b38b5c48 /clang
parent0541c67ae7298bd03911974535a13a46c59ef3fc (diff)
downloadbcm5719-llvm-b4a26ed58e615a86721f38640864324ed4555bd1.tar.gz
bcm5719-llvm-b4a26ed58e615a86721f38640864324ed4555bd1.zip
Work around overloading bug in MSVC 2015
MSVC 2015 appears to be unable to find the correct operator== here. I haven't yet filed a bug with Microsoft as I've been unable to create a reduced test case. llvm-svn: 237862
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/AST/RecordLayoutBuilder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp
index 8c9f57deb23..2101a5534a6 100644
--- a/clang/lib/AST/RecordLayoutBuilder.cpp
+++ b/clang/lib/AST/RecordLayoutBuilder.cpp
@@ -2976,11 +2976,11 @@ void ASTContext::setNonKeyFunction(const CXXMethodDecl *Method) {
// Look up the cache entry. Since we're working with the first
// declaration, its parent must be the class definition, which is
// the correct key for the KeyFunctions hash.
- llvm::DenseMap<const CXXRecordDecl*, LazyDeclPtr>::iterator
- I = KeyFunctions.find(Method->getParent());
+ const auto &Map = KeyFunctions;
+ auto I = Map.find(Method->getParent());
// If it's not cached, there's nothing to do.
- if (I == KeyFunctions.end()) return;
+ if (I == Map.end()) return;
// If it is cached, check whether it's the target method, and if so,
// remove it from the cache. Note, the call to 'get' might invalidate
OpenPOWER on IntegriCloud