[cfe-commits] r92957 - /cfe/trunk/lib/Frontend/RewriteObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu Jan 7 14:51:18 PST 2010
Author: fjahanian
Date: Thu Jan 7 16:51:18 2010
New Revision: 92957
URL: http://llvm.org/viewvc/llvm-project?rev=92957&view=rev
Log:
Fixes a bug where we were rewriting two definitions of
_objc_method (part of radar 7490408).
Modified:
cfe/trunk/lib/Frontend/RewriteObjC.cpp
Modified: cfe/trunk/lib/Frontend/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/RewriteObjC.cpp?rev=92957&r1=92956&r2=92957&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/RewriteObjC.cpp (original)
+++ cfe/trunk/lib/Frontend/RewriteObjC.cpp Thu Jan 7 16:51:18 2010
@@ -114,6 +114,7 @@
llvm::raw_ostream* OutFile;
bool SilenceRewriteMacroWarning;
+ bool objc_impl_method;
std::string Preamble;
@@ -497,6 +498,7 @@
PropParentMap = 0;
CurrentBody = 0;
DisableReplaceStmt = false;
+ objc_impl_method = false;
// Get the ID and start/end of the main file.
MainFileID = SM->getMainFileID();
@@ -2953,7 +2955,6 @@
std::string &Result) {
if (MethodBegin == MethodEnd) return;
- static bool objc_impl_method = false;
if (!objc_impl_method) {
/* struct _objc_method {
SEL _cmd;
More information about the cfe-commits
mailing list