[cfe-commits] r137491 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Fri Aug 12 11:44:32 PDT 2011
Author: rsmith
Date: Fri Aug 12 13:44:32 2011
New Revision: 137491
URL: http://llvm.org/viewvc/llvm-project?rev=137491&view=rev
Log:
Fix some comments.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=137491&r1=137490&r2=137491&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Aug 12 13:44:32 2011
@@ -4371,11 +4371,10 @@
isVirtualOkay = true;
} else if (DC->isRecord()) {
- // If the of the function is the same as the name of the record, then this
- // must be an invalid constructor that has a return type.
+ // If the name of the function is the same as the name of the record,
+ // then this must be an invalid constructor that has a return type.
// (The parser checks for a return type and makes the declarator a
// constructor if it has no return type).
- // must have an invalid constructor that has a return type
if (Name.getAsIdentifierInfo() &&
Name.getAsIdentifierInfo() == cast<CXXRecordDecl>(DC)->getIdentifier()){
Diag(D.getIdentifierLoc(), diag::err_constructor_return_type)
@@ -6590,8 +6589,7 @@
if (FD && isa<CXXConstructorDecl>(FD) && isa<CXXTryStmt>(Body))
DiagnoseReturnInConstructorExceptionHandler(cast<CXXTryStmt>(Body));
- // Verify that that gotos and switch cases don't jump into scopes illegally.
- // Verify that that gotos and switch cases don't jump into scopes illegally.
+ // Verify that gotos and switch cases don't jump into scopes illegally.
if (getCurFunction()->NeedsScopeChecking() &&
!dcl->isInvalidDecl() &&
!hasAnyUnrecoverableErrorsInThisFunction())
More information about the cfe-commits
mailing list