[cfe-commits] r45706 - /cfe/trunk/Sema/SemaExpr.cpp

Chris Lattner sabre at nondot.org
Mon Jan 7 09:51:46 PST 2008


Author: lattner
Date: Mon Jan  7 11:51:46 2008
New Revision: 45706

URL: http://llvm.org/viewvc/llvm-project?rev=45706&view=rev
Log:
minor cleanup.

Modified:
    cfe/trunk/Sema/SemaExpr.cpp

Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=45706&r1=45705&r2=45706&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Mon Jan  7 11:51:46 2008
@@ -1101,7 +1101,7 @@
   rhsType = rhsType.getCanonicalType();
   
   if (lhsType.getUnqualifiedType() == rhsType.getUnqualifiedType())
-    return Compatible; // common case, fast path...
+    return Compatible; // Common case: fast path an exact match.
 
   if (lhsType->isReferenceType() || rhsType->isReferenceType()) {
     if (Context.referenceTypesAreCompatible(lhsType, rhsType))
@@ -1159,7 +1159,6 @@
     if (lhsType->isPointerType()) 
       return CheckPointerTypesForAssignment(lhsType, rhsType);
     return Incompatible;
-
   }
   
   if (isa<TagType>(lhsType) && isa<TagType>(rhsType)) {





More information about the cfe-commits mailing list