Remove rewriter dependency on 'nil' macro (used when rewriting for(...))

llvm-svn: 61135
This commit is contained in:
Steve Naroff 2008-12-17 14:24:39 +00:00
parent 596e137c84
commit d1a36798b7
1 changed files with 2 additions and 2 deletions

View File

@ -1398,14 +1398,14 @@ Stmt *RewriteObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S,
SynthCountByEnumWithState(buf);
buf += ");\n\t";
buf += elementName;
buf += " = nil;\n\t";
buf += " = ((id)0);\n\t";
buf += "__break_label_";
buf += utostr(ObjCBcLabelNo.back());
buf += ": ;\n\t";
buf += "}\n\t";
buf += "else\n\t\t";
buf += elementName;
buf += " = nil;\n";
buf += " = ((id)0);\n";
buf += "}\n";
// Insert all these *after* the statement body.