aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-05-28 22:43:53 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-05-28 22:43:53 +0000
commit2a480e356e45be74c3c3afe586b77cf923cd4181 (patch)
treeb8ffb9535988df1b78a528b2bc47bec5b4b5e8dc
parent0511552e20c79ec48638038b9a10a70a34654e5c (diff)
Changed text of 'empty enum' diagnostics to say so.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105013 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/DiagnosticParseKinds.td2
-rw-r--r--test/Sema/enum.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td
index 50427cc8e3..42080d5c4c 100644
--- a/include/clang/Basic/DiagnosticParseKinds.td
+++ b/include/clang/Basic/DiagnosticParseKinds.td
@@ -35,7 +35,7 @@ def ext_thread_before : Extension<"'__thread' before 'static'">;
def ext_empty_struct_union_enum : Extension<"use of empty %0 extension">;
-def error_empty_enum : Error<"use of empty union">;
+def error_empty_enum : Error<"use of empty enum">;
def err_invalid_sign_spec : Error<"'%0' cannot be signed or unsigned">;
def err_invalid_short_spec : Error<"'short %0' is invalid">;
def err_invalid_long_spec : Error<"'long %0' is invalid">;
diff --git a/test/Sema/enum.c b/test/Sema/enum.c
index 4a5771d66b..057015011e 100644
--- a/test/Sema/enum.c
+++ b/test/Sema/enum.c
@@ -51,7 +51,7 @@ void test4() {
}
// PR2416
-enum someenum {}; // expected-error {{use of empty union}}
+enum someenum {}; // expected-error {{use of empty enum}}
// <rdar://problem/6093889>
enum e0 { // expected-note {{previous definition is here}}