From 5605fdf94cef9e16a9a168b5fb66a3395ba9df42 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Wed, 17 Dec 2008 14:24:39 +0000 Subject: [PATCH] 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 --- Driver/RewriteObjC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Driver/RewriteObjC.cpp b/Driver/RewriteObjC.cpp index 8215295846..bd7b73e316 100644 --- a/Driver/RewriteObjC.cpp +++ b/Driver/RewriteObjC.cpp @@ -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.