]> granicus.if.org Git - clang/commitdiff
minor cleanup.
authorChris Lattner <sabre@nondot.org>
Mon, 7 Jan 2008 17:51:46 +0000 (17:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 7 Jan 2008 17:51:46 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45706 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaExpr.cpp

index 71d1b60e14a7e74ddcd037b1aba4d88a0edd3a1b..d0ade1bea44d0bc5f2bcf18751bbc6ec6215da65 100644 (file)
@@ -1101,7 +1101,7 @@ Sema::CheckAssignmentConstraints(QualType lhsType, QualType rhsType) {
   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 @@ Sema::CheckAssignmentConstraints(QualType lhsType, QualType rhsType) {
     if (lhsType->isPointerType()) 
       return CheckPointerTypesForAssignment(lhsType, rhsType);
     return Incompatible;
-
   }
   
   if (isa<TagType>(lhsType) && isa<TagType>(rhsType)) {