diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-26 16:08:57 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-26 16:08:57 +0000 |
commit | c6249b9230e1821b0d28f6f2d5c2d793508606fd (patch) | |
tree | e5d99716dc204746c620391fa1cd6c737166cf1b | |
parent | 6f3d838867538638b9bbf412028e8537ae12f3e5 (diff) |
Minor change per Doug's comments.
- Fariborz
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74287 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index f00acdac41..016cedfe0e 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -1940,7 +1940,9 @@ void Sema::DefineImplicitDefaultConstructor(SourceLocation CurrentLocation, } } if (!err) - Constructor->setUsed(); + Constructor->setUsed(); + else + Constructor->setInvalidDecl(); } void Sema::DefineImplicitOverloadedAssign(SourceLocation CurrentLocation, @@ -1954,7 +1956,7 @@ void Sema::DefineImplicitOverloadedAssign(SourceLocation CurrentLocation, = cast<CXXRecordDecl>(MethodDecl->getDeclContext()); assert(ClassDecl && "DefineImplicitOverloadedAssign - invalid constructor"); - // C++[class.copy] p210 + // C++[class.copy] p12 // Before the implicitly-declared copy assignment operator for a class is // implicitly defined, all implicitly-declared copy assignment operators // for its direct base classes and its nonstatic data members shall have |