aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/Sema.h6
-rw-r--r--lib/Sema/SemaExpr.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index 84d4c598b2..bfef9a3985 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -3486,11 +3486,11 @@ public:
/// c/v/r qualifiers, which we accept as an extension.
CompatiblePointerDiscardsQualifiers,
- /// IncompatibleMultiPointerQualifiers - The assignment is between two
- /// multi-level pointer types, and the qualifiers other than the first two
+ /// IncompatibleNestedPointerQualifiers - The assignment is between two
+ /// nested pointer types, and the qualifiers other than the first two
/// levels differ e.g. char ** -> const char **. We disallow this.
/// FIXME: GCC only warns for this - should we do the same?
- IncompatibleMultiPointerQualifiers,
+ IncompatibleNestedPointerQualifiers,
/// IncompatibleVectors - The assignment is between two vector types that
/// have the same size, which we accept as an extension.
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index a09f6a9005..887a4c4af4 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -3762,7 +3762,7 @@ Sema::CheckPointerTypesForAssignment(QualType lhsType, QualType rhsType) {
} while (lhptee->isPointerType() && rhptee->isPointerType());
if (lhptee.getUnqualifiedType() == rhptee.getUnqualifiedType())
- return IncompatibleMultiPointerQualifiers;
+ return IncompatibleNestedPointerQualifiers;
}
// General pointer incompatibility takes priority over qualifiers.
@@ -6241,8 +6241,8 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType ConvTy,
return false;
DiagKind = diag::ext_typecheck_convert_discards_qualifiers;
break;
- case IncompatibleMultiPointerQualifiers:
- DiagKind = diag::err_multi_pointer_qualifier_mismatch;
+ case IncompatibleNestedPointerQualifiers:
+ DiagKind = diag::err_nested_pointer_qualifier_mismatch;
break;
case IntToBlockPointer:
DiagKind = diag::err_int_to_block_pointer;