diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-26 23:01:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-26 23:01:51 +0000 |
commit | dbb1ecc32ca122b07b7c98fd0a8f6f53985adacc (patch) | |
tree | 7bd1b69e6ce297e213ade3d86ea61a070261489e /lib/Sema/SemaExpr.cpp | |
parent | e8e260039346695beaa15af3e64ba38a64a1c30b (diff) |
fix some sema problems with wide strings and hook up basic codegen for them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index eec27cee83..01be6b2474 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -400,7 +400,7 @@ Sema::ActOnStringLiteral(const Token *StringToks, unsigned NumStringToks) { // the nul terminator character as well as the string length for pascal // strings. StrTy = Context.getConstantArrayType(StrTy, - llvm::APInt(32, Literal.GetStringLength()+1), + llvm::APInt(32, Literal.GetNumStringChars()+1), ArrayType::Normal, 0); // Pass &StringTokLocs[0], StringTokLocs.size() to factory! |