diff options
author | Steve Naroff <snaroff@apple.com> | 2009-12-06 01:48:44 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-12-06 01:48:44 +0000 |
commit | fd5b76fe99a123630321b45667a78f1a15be7241 (patch) | |
tree | 8ce757ed3a88e5cb8248b74fe4ff0d70f7e67e6d /lib/Frontend/RewriteObjC.cpp | |
parent | a851e60b7eb1d51549222ac838b8b602f23ec701 (diff) |
Integrate the following from the 'objective-rewrite' branch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=82174
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 9fc0669ca3..a9bf3c04fc 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -2240,8 +2240,7 @@ Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { PrintingPolicy(LangOpts)); Preamble += prettyBuf.str(); Preamble += ","; - // The minus 2 removes the begin/end double quotes. - Preamble += utostr(prettyBuf.str().size()-2) + "};\n"; + Preamble += utostr(Exp->getString()->getByteLength()) + "};\n"; VarDecl *NewVD = VarDecl::Create(*Context, TUDecl, SourceLocation(), &Context->Idents.get(S.c_str()), strType, 0, |