зеркало из https://github.com/microsoft/clang.git
Remove rewriter dependency on 'nil' macro (used when rewriting for(...))
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
7d1117d93c
Коммит
5605fdf94c
|
@ -1398,14 +1398,14 @@ Stmt *RewriteObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S,
|
||||||
SynthCountByEnumWithState(buf);
|
SynthCountByEnumWithState(buf);
|
||||||
buf += ");\n\t";
|
buf += ");\n\t";
|
||||||
buf += elementName;
|
buf += elementName;
|
||||||
buf += " = nil;\n\t";
|
buf += " = ((id)0);\n\t";
|
||||||
buf += "__break_label_";
|
buf += "__break_label_";
|
||||||
buf += utostr(ObjCBcLabelNo.back());
|
buf += utostr(ObjCBcLabelNo.back());
|
||||||
buf += ": ;\n\t";
|
buf += ": ;\n\t";
|
||||||
buf += "}\n\t";
|
buf += "}\n\t";
|
||||||
buf += "else\n\t\t";
|
buf += "else\n\t\t";
|
||||||
buf += elementName;
|
buf += elementName;
|
||||||
buf += " = nil;\n";
|
buf += " = ((id)0);\n";
|
||||||
buf += "}\n";
|
buf += "}\n";
|
||||||
|
|
||||||
// Insert all these *after* the statement body.
|
// Insert all these *after* the statement body.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче