[cfe-commits] r74287 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jun 26 09:08:57 PDT 2009
Author: fjahanian
Date: Fri Jun 26 11:08:57 2009
New Revision: 74287
URL: http://llvm.org/viewvc/llvm-project?rev=74287&view=rev
Log:
Minor change per Doug's comments.
- Fariborz
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=74287&r1=74286&r2=74287&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Fri Jun 26 11:08:57 2009
@@ -1940,7 +1940,9 @@
}
}
if (!err)
- Constructor->setUsed();
+ Constructor->setUsed();
+ else
+ Constructor->setInvalidDecl();
}
void Sema::DefineImplicitOverloadedAssign(SourceLocation CurrentLocation,
@@ -1954,7 +1956,7 @@
= 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
More information about the cfe-commits
mailing list