diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-03-28 21:13:53 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-03-28 21:13:53 +0000 |
| commit | e798ba4b6797c5ae6dbb3047ffa3121d9ba3a04f (patch) | |
| tree | 25ce98bec53a1797d8d903948eb90a326979ac87 | |
| parent | b0414e0effb7217d381236a859864df71620ef1c (diff) | |
| download | bcm5719-llvm-e798ba4b6797c5ae6dbb3047ffa3121d9ba3a04f.tar.gz bcm5719-llvm-e798ba4b6797c5ae6dbb3047ffa3121d9ba3a04f.zip | |
Fix typo in my last patch.
llvm-svn: 153602
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
| -rw-r--r-- | clang/test/SemaObjC/objc-container-subscripting-2.m | 4 | ||||
| -rw-r--r-- | clang/test/SemaObjCXX/objc-container-subscripting.mm | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 2b8d0b774c0..bdaac9c26a8 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -3779,7 +3779,7 @@ def err_objc_multiple_subscript_type_conversion : Error< "indexing expression is invalid because subscript type %0 has " "multiple type conversion functions">; def err_objc_subscript_type_conversion : Error< - "indexing expression is invalid because subscript type %0 is not an intergal" + "indexing expression is invalid because subscript type %0 is not an integral" " or objective-C pointer type">; def err_objc_subscript_pointer : Error< "indexing expression is invalid because subscript type %0 is not an" diff --git a/clang/test/SemaObjC/objc-container-subscripting-2.m b/clang/test/SemaObjC/objc-container-subscripting-2.m index 45f82e5c746..3c0081b72a7 100644 --- a/clang/test/SemaObjC/objc-container-subscripting-2.m +++ b/clang/test/SemaObjC/objc-container-subscripting-2.m @@ -16,8 +16,8 @@ typedef unsigned int size_t; id func() { NSMutableArray *array; float f; - array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an intergal or objective-C pointer type}} - return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal or objective-C pointer type}} + array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an integral or objective-C pointer type}} + return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}} } void test_unused() { diff --git a/clang/test/SemaObjCXX/objc-container-subscripting.mm b/clang/test/SemaObjCXX/objc-container-subscripting.mm index 7591c3b0986..c835cbe53c6 100644 --- a/clang/test/SemaObjCXX/objc-container-subscripting.mm +++ b/clang/test/SemaObjCXX/objc-container-subscripting.mm @@ -32,8 +32,8 @@ template void test_dictionary_subscripts(NSMutableDictionary*, id, int); // expe template<typename T, typename U, typename O> void test_array_subscripts(T base, U index, O obj) { - base[index] = obj; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal or objective-C pointer type}} - obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal or objective-C pointer type}} + base[index] = obj; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}} + obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}} } template void test_array_subscripts(NSMutableArray *, int, id); |

