From fd942628abfe30e30427875db953222ae99b4325 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Mon, 13 Apr 2009 20:26:29 +0000 Subject: Move/update recent FIXME (wrt UTF-8 checking for ObjC @-strings). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68982 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 797c0cef00..79bf4de4f7 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -1070,10 +1070,7 @@ GetAddrOfConstantCFString(const StringLiteral *Literal) { str.assign((char *)&ToBuf[0], StringLength*2);// Twice as many UTF8 chars. isUTF16 = true; } else if (Result == sourceIllegal) { - // FIXME: GCC currently emits the following warning (in the backend): - // "warning: input conversion stopped due to an input byte that does not - // belong to the input codeset UTF-8" - // The clang backend doesn't currently emit any warnings. + // FIXME: Have Sema::CheckObjCString() validate the UTF-8 string. str.assign(Literal->getStrData(), Literal->getByteLength()); StringLength = str.length(); } else -- cgit v1.2.3-18-g5258