Skip to content
Snippets Groups Projects
Commit 18235a51 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

Try to work around an MSVC 2013 bug around defaulted default ctors

An UnresolvedSetIterator() is supposed to be zeroed out, but MSVC 2013
does not do that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278842 91177308-0d34-0410-b5e6-96231b3b80d8
parent 1d09f012
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,9 @@ class UnresolvedSetIterator : public llvm::iterator_adaptor_base< ...@@ -38,7 +38,9 @@ class UnresolvedSetIterator : public llvm::iterator_adaptor_base<
: iterator_adaptor_base(const_cast<DeclAccessPair *>(Iter)) {} : iterator_adaptor_base(const_cast<DeclAccessPair *>(Iter)) {}
public: public:
UnresolvedSetIterator() = default; // 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(); } NamedDecl *getDecl() const { return I->getDecl(); }
void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } void setDecl(NamedDecl *ND) const { return I->setDecl(ND); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment