Improve missing error messages as suggested by Doug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80489 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp
index f291be1..755cc22 100644
--- a/lib/Sema/Sema.cpp
+++ b/lib/Sema/Sema.cpp
@@ -354,16 +354,16 @@
const Type *Ty = Context.getCanonicalType(NNS->getAsType());
RecordDecl *RD = cast<RecordType>(Ty)->getDecl();
Diag(MemberLoc, diag::err_typecheck_record_no_member)
- << RD->getTagKind() << RD << Member << Range;
+ << Member << RD->getTagKind() << RD << Range;
break;
}
case NestedNameSpecifier::Namespace: {
Diag(MemberLoc, diag::err_typecheck_namespace_no_member)
- << NNS->getAsNamespace() << Member << Range;
+ << Member << NNS->getAsNamespace() << Range;
break;
}
case NestedNameSpecifier::Global: {
- Diag(MemberLoc, diag::err_typecheck_global_scope_no_member)
+ Diag(MemberLoc, diag::err_typecheck_global_namespace_no_member)
<< Member << Range;
break;
}