diff options
author | Steve Naroff <snaroff@apple.com> | 2009-04-01 13:55:36 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-04-01 13:55:36 +0000 |
commit | 8d4141f83d9de379547cf05bd75d4c6cf894b189 (patch) | |
tree | eac41be40f1cdc041a7af5afe13279cb39b97995 /lib/CodeGen/CGExprConstant.cpp | |
parent | 4e93b34fdb798abfa0534062a139f2c37cbf876e (diff) |
More "prep" work for handling UTF16 CFString.
Patch by Jean-Daniel Dupas. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 89b331950c..51ad5b67b8 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/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; |