summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-12-06 01:48:44 +0000
committerSteve Naroff <snaroff@apple.com>2009-12-06 01:48:44 +0000
commit94ed6dc906f581609ca679713d623e3783303bd8 (patch)
treecbde6de1b7d4f7675c3956f0f13fa52279264c49 /clang
parenteb5bb1bf78936bb9b4ca73ac94c6fd40778505c1 (diff)
downloadbcm5719-llvm-94ed6dc906f581609ca679713d623e3783303bd8.tar.gz
bcm5719-llvm-94ed6dc906f581609ca679713d623e3783303bd8.zip
Integrate the following from the 'objective-rewrite' branch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=82174 llvm-svn: 90692
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Frontend/RewriteObjC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp
index 9fc0669ca34..a9bf3c04fc0 100644
--- a/clang/lib/Frontend/RewriteObjC.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud