[cfe-commits] r39527 - /cfe/cfe/trunk/Sema/SemaExpr.cpp
bwendlin at cs.uiuc.edu
bwendlin at cs.uiuc.edu
Wed Jul 11 09:45:18 PDT 2007
Author: bwendlin
Date: Wed Jul 11 11:45:18 2007
New Revision: 39527
URL: http://llvm.org/viewvc/llvm-project?rev=39527&view=rev
Log:
Submitted by: Bill Wendling
Comment format changes.
Modified:
cfe/cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Sema/SemaExpr.cpp?rev=39527&r1=39526&r2=39527&view=diff
==============================================================================
--- cfe/cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/cfe/trunk/Sema/SemaExpr.cpp Wed Jul 11 11:45:18 2007
@@ -670,10 +670,10 @@
///
QualType Sema::UsualAssignmentConversions(QualType lhsType, QualType rhsType,
AssignmentConversionResult &r) {
- // this check seems unnatural, however it necessary to insure the proper
- // conversion of functions/arrays. If the conversion where done for all
- // DeclExpr's (created by ParseIdentifierExpr), it would mess up the
- // unary expressions that surpress this implicit conversion (&, sizeof).
+ // This check seems unnatural, however it is necessary to insure the proper
+ // conversion of functions/arrays. If the conversion were done for all
+ // DeclExpr's (created by ParseIdentifierExpr), it would mess up the unary
+ // expressions that surpress this implicit conversion (&, sizeof).
if (rhsType->isFunctionType() || rhsType->isArrayType())
rhsType = UsualUnaryConversion(rhsType);
@@ -699,7 +699,7 @@
} else if (isa<TagType>(lhsType) && isa<TagType>(rhsType)) {
if (Type::tagTypesAreCompatible(lhsType, rhsType))
return rhsType;
- }
+ }
r = Incompatible;
return QualType();
}
More information about the cfe-commits
mailing list