From: Chris Lattner Date: Mon, 7 Jan 2008 17:51:46 +0000 (+0000) Subject: minor cleanup. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2656dd638b1cba54a52f2ae79c36fb90c0f0e31;p=clang minor cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45706 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 71d1b60e14..d0ade1bea4 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -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(lhsType) && isa(rhsType)) {