Integrate the following from the 'objective-rewrite' branch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=82174 llvm-svn: 90692
This commit is contained in:
parent
eb5bb1bf78
commit
94ed6dc906
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue