don't pass a random english string in as a string argument to Diag.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64608 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Basic/DiagnosticParseKinds.def b/include/clang/Basic/DiagnosticParseKinds.def
index a4e2011..a1bfa4a 100644
--- a/include/clang/Basic/DiagnosticParseKinds.def
+++ b/include/clang/Basic/DiagnosticParseKinds.def
@@ -138,6 +138,8 @@
      "expected ';' after %0")
 DIAG(err_expected_semi_after_expr, ERROR,
      "expected ';' after expression")
+DIAG(err_expected_semi_after_method_proto, ERROR,
+     "expected ';' after method prototype")
 DIAG(err_expected_semi_for, ERROR,
      "expected ';' in 'for' statement specifier")
 DIAG(err_expected_colon_after, ERROR,
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp
index 8f4480a..210f33a 100644
--- a/lib/Parse/ParseObjc.cpp
+++ b/lib/Parse/ParseObjc.cpp
@@ -239,7 +239,7 @@
       allMethods.push_back(methodPrototype);
       // Consume the ';' here, since ParseObjCMethodPrototype() is re-used for
       // method definitions.
-      ExpectAndConsume(tok::semi, diag::err_expected_semi_after,"method proto");
+      ExpectAndConsume(tok::semi, diag::err_expected_semi_after_method_proto);
       continue;
     }