summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-04-01 13:55:36 +0000
committerSteve Naroff <snaroff@apple.com>2009-04-01 13:55:36 +0000
commite14b368fa9d65a75e4c080acc9cc9aa56f657e1a (patch)
tree3bdc074003083dac29c2230a18f0ba9738a70f86 /clang/lib/CodeGen/CGExprConstant.cpp
parentc94adda1574e781d12f1d04fbfdec51f4299653c (diff)
downloadbcm5719-llvm-e14b368fa9d65a75e4c080acc9cc9aa56f657e1a.tar.gz
bcm5719-llvm-e14b368fa9d65a75e4c080acc9cc9aa56f657e1a.zip
More "prep" work for handling UTF16 CFString.
Patch by Jean-Daniel Dupas. Thanks! llvm-svn: 68203
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 89b331950c1..51ad5b67b89 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -442,9 +442,8 @@ public:
break;
const Expr *Arg = CE->getArg(0)->IgnoreParenCasts();
const StringLiteral *Literal = cast<StringLiteral>(Arg);
- std::string S(Literal->getStrData(), Literal->getByteLength());
// FIXME: need to deal with UCN conversion issues.
- return CGM.GetAddrOfConstantCFString(S);
+ return CGM.GetAddrOfConstantCFString(Literal);
}
case Expr::BlockExprClass: {
std::string FunctionName;
OpenPOWER on IntegriCloud