summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-06 15:59:27 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-06 15:59:27 +0000
commite637711ae013940dcee207d2ea19bbd629ccd2b3 (patch)
tree026c3a08949486beaee43a0972a4fd7f63569118 /clang/lib/CodeGen/CodeGenModule.cpp
parent4717a8d654a50af4aeb8bd926f9336a6a70d6255 (diff)
downloadbcm5719-llvm-e637711ae013940dcee207d2ea19bbd629ccd2b3.tar.gz
bcm5719-llvm-e637711ae013940dcee207d2ea19bbd629ccd2b3.zip
Dont cast away const needlessly. Found by gcc48 -Wcast-qual.
llvm-svn: 163325
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 554aa1cb4cd..87e74547c20 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1995,7 +1995,7 @@ GetConstantCFStringEntry(llvm::StringMap<llvm::Constant*> &Map,
IsUTF16 = true;
SmallVector<UTF16, 128> ToBuf(NumBytes + 1); // +1 for ending nulls.
- const UTF8 *FromPtr = (UTF8 *)String.data();
+ const UTF8 *FromPtr = (const UTF8 *)String.data();
UTF16 *ToPtr = &ToBuf[0];
(void)ConvertUTF8toUTF16(&FromPtr, FromPtr + NumBytes,
OpenPOWER on IntegriCloud