diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-07 19:57:04 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-07 19:57:04 +0000 |
commit | e7ddfb974884ec75ffd66953b79511ea457493ba (patch) | |
tree | c910f2e0f47e24563c69b50407b7c923c5074aff /lib/CodeGen/CodeGenModule.cpp | |
parent | 7da71020b97c69b95831bd03d35e8e8404bfdea0 (diff) |
get rid of a warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 6a527a229e..173fbf4ff7 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -1494,9 +1494,9 @@ GetConstantCFStringEntry(llvm::StringMap<llvm::Constant*> &Map, const UTF8 *FromPtr = (UTF8 *)String.data(); UTF16 *ToPtr = &ToBuf[0]; - ConversionResult Result = ConvertUTF8toUTF16(&FromPtr, FromPtr + NumBytes, - &ToPtr, ToPtr + NumBytes, - strictConversion); + (void)ConvertUTF8toUTF16(&FromPtr, FromPtr + NumBytes, + &ToPtr, ToPtr + NumBytes, + strictConversion); // ConvertUTF8toUTF16 returns the length in ToPtr. StringLength = ToPtr - &ToBuf[0]; |