diff options
author | Steve Naroff <snaroff@apple.com> | 2009-04-01 21:16:31 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-04-01 21:16:31 +0000 |
commit | b59212a6e494d2c364b54462f545833902c29158 (patch) | |
tree | f6a360bc2eb9c314e423da03f2fec808c44c56ef /lib/Sema/SemaChecking.cpp | |
parent | 9e2d98d3f6fc225df1df2aec6986a3bee5dd2987 (diff) |
CodeGenModule::GetAddrOfConstantCFString():
- Finish up support for converting UTF8->UTF16 to support ObjC @"string" constants.
Remove warning from CheckObjCString.
As the FIXME in the test case indicates, I still have a bug to work out (apparently with \u handling).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 4bf8fc9dce..1802b6e942 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -173,13 +173,6 @@ bool Sema::CheckObjCString(Expr *Arg) { unsigned Length = Literal->getByteLength(); for (unsigned i = 0; i < Length; ++i) { - if (!isascii(Data[i])) { - Diag(getLocationOfStringLiteralByte(Literal, i), - diag::warn_cfstring_literal_contains_non_ascii_character) - << Arg->getSourceRange(); - break; - } - if (!Data[i]) { Diag(getLocationOfStringLiteralByte(Literal, i), diag::warn_cfstring_literal_contains_nul_character) |