diff options
Diffstat (limited to 'include/clang/AST/UnresolvedSet.h')
-rw-r--r-- | include/clang/AST/UnresolvedSet.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/AST/UnresolvedSet.h b/include/clang/AST/UnresolvedSet.h index c1be2aa0f201..b63c6eb21769 100644 --- a/include/clang/AST/UnresolvedSet.h +++ b/include/clang/AST/UnresolvedSet.h @@ -17,7 +17,6 @@ #include "clang/AST/DeclAccessPair.h" #include "clang/Basic/LLVM.h" -#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/iterator.h" @@ -39,7 +38,9 @@ class UnresolvedSetIterator : public llvm::iterator_adaptor_base< : iterator_adaptor_base(const_cast<DeclAccessPair *>(Iter)) {} public: - UnresolvedSetIterator() {} + // Work around a bug in MSVC 2013 where explicitly default constructed + // temporaries with defaulted ctors are not zero initialized. + UnresolvedSetIterator() : iterator_adaptor_base(nullptr) {} NamedDecl *getDecl() const { return I->getDecl(); } void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } |