diff options
Diffstat (limited to 'Sema/SemaExpr.cpp')
-rw-r--r-- | Sema/SemaExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 8f816e67ef..976069e669 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -1045,7 +1045,8 @@ Sema::CheckPointerTypesForAssignment(QualType lhsType, QualType rhsType) { /// Sema::AssignmentCheckResult Sema::CheckAssignmentConstraints(QualType lhsType, QualType rhsType) { - if (lhsType.getCanonicalType() == rhsType.getCanonicalType()) + if (lhsType.getCanonicalType().getUnqualifiedType() == + rhsType.getCanonicalType().getUnqualifiedType()) return Compatible; // common case, fast path... if (lhsType->isReferenceType() || rhsType->isReferenceType()) { |