diff options
author | Sean Hunt <rideau3@gmail.com> | 2009-11-08 07:46:34 +0000 |
---|---|---|
committer | Sean Hunt <rideau3@gmail.com> | 2009-11-08 07:46:34 +0000 |
commit | c9132b697cff37f2918f9501b8ee2262b0bc6f03 (patch) | |
tree | ab721acaccc045afa74a3fe1ed68bf01cae565b1 /lib | |
parent | 3eaa9ffa176e5d240a0b140b35cc104ee3d63936 (diff) |
Test commit - minor terminology change to my recent patch suggested by John McCall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/Sema.h | 6 | ||||
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 6 |
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; |