diff options
author | Steve Naroff <snaroff@apple.com> | 2009-04-13 20:26:29 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-04-13 20:26:29 +0000 |
commit | fb46e8658ce8db2bffeed0ab38347a8fa0255a1f (patch) | |
tree | a65a77f6a6675370195f96f3aa445506c506b606 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f6c2195383798e825a300579d6416f8c556250a9 (diff) | |
download | bcm5719-llvm-fb46e8658ce8db2bffeed0ab38347a8fa0255a1f.tar.gz bcm5719-llvm-fb46e8658ce8db2bffeed0ab38347a8fa0255a1f.zip |
Move/update recent FIXME (wrt UTF-8 checking for ObjC @-strings).
llvm-svn: 68982
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 797c0cef000..79bf4de4f7a 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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 |