Fix inconsistent diag name

llvm-svn: 196061
This commit is contained in:
Alp Toker 2013-12-02 03:50:21 +00:00
parent 99416d3ef2
commit fff0674ae0
2 changed files with 3 additions and 3 deletions

View File

@ -547,7 +547,7 @@ def err_conflicting_ivar_bitwidth : Error<
"instance variable %0 has conflicting bit-field width">; "instance variable %0 has conflicting bit-field width">;
def err_conflicting_ivar_name : Error< def err_conflicting_ivar_name : Error<
"conflicting instance variable names: %0 vs %1">; "conflicting instance variable names: %0 vs %1">;
def err_inconsistant_ivar_count : Error< def err_inconsistent_ivar_count : Error<
"inconsistent number of instance variables specified">; "inconsistent number of instance variables specified">;
def warn_undef_method_impl : Warning<"method definition for %0 not found">, def warn_undef_method_impl : Warning<"method definition for %0 not found">,
InGroup<DiagGroup<"incomplete-implementation">>; InGroup<DiagGroup<"incomplete-implementation">>;

View File

@ -1209,9 +1209,9 @@ void Sema::CheckImplementationIvars(ObjCImplementationDecl *ImpDecl,
} }
if (numIvars > 0) if (numIvars > 0)
Diag(ivars[j]->getLocation(), diag::err_inconsistant_ivar_count); Diag(ivars[j]->getLocation(), diag::err_inconsistent_ivar_count);
else if (IVI != IVE) else if (IVI != IVE)
Diag(IVI->getLocation(), diag::err_inconsistant_ivar_count); Diag(IVI->getLocation(), diag::err_inconsistent_ivar_count);
} }
void Sema::WarnUndefinedMethod(SourceLocation ImpLoc, ObjCMethodDecl *method, void Sema::WarnUndefinedMethod(SourceLocation ImpLoc, ObjCMethodDecl *method,