[cfe-commits] r44036 - /cfe/trunk/Sema/SemaExpr.cpp
Steve Naroff
snaroff at apple.com
Mon Nov 12 16:31:43 PST 2007
Author: snaroff
Date: Mon Nov 12 18:31:42 2007
New Revision: 44036
URL: http://llvm.org/viewvc/llvm-project?rev=44036&view=rev
Log:
Fix Sema::CheckAssignmentConstraints() to operate on the canonical, unqualified type.
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=44036&r1=44035&r2=44036&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Mon Nov 12 18:31:42 2007
@@ -1045,7 +1045,8 @@
///
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()) {
More information about the cfe-commits
mailing list