[cfe-commits] r61135 - /cfe/trunk/Driver/RewriteObjC.cpp
Steve Naroff
snaroff at apple.com
Wed Dec 17 06:24:53 PST 2008
Author: snaroff
Date: Wed Dec 17 08:24:39 2008
New Revision: 61135
URL: http://llvm.org/viewvc/llvm-project?rev=61135&view=rev
Log:
Remove rewriter dependency on 'nil' macro (used when rewriting for(...))
Modified:
cfe/trunk/Driver/RewriteObjC.cpp
Modified: cfe/trunk/Driver/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteObjC.cpp?rev=61135&r1=61134&r2=61135&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteObjC.cpp (original)
+++ cfe/trunk/Driver/RewriteObjC.cpp Wed Dec 17 08:24:39 2008
@@ -1398,14 +1398,14 @@
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.
More information about the cfe-commits
mailing list