[cfe-commits] r53696 - /cfe/trunk/Driver/RewriteObjC.cpp
Steve Naroff
snaroff at apple.com
Wed Jul 16 12:47:39 PDT 2008
Author: snaroff
Date: Wed Jul 16 14:47:39 2008
New Revision: 53696
URL: http://llvm.org/viewvc/llvm-project?rev=53696&view=rev
Log:
Remove a FIXME from RewriteObjC::RewriteObjCSynchronizedStmt().
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=53696&r1=53695&r2=53696&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteObjC.cpp (original)
+++ cfe/trunk/Driver/RewriteObjC.cpp Wed Jul 16 14:47:39 2008
@@ -1294,8 +1294,11 @@
buf = "}\nelse {\n";
buf += " _rethrow = objc_exception_extract(&_stack);\n";
buf += " if (!_rethrow) objc_exception_try_exit(&_stack);\n";
- // FIXME: This must be objc_sync_exit(syncExpr);
- buf += " objc_sync_exit();\n";
+ buf += " objc_sync_exit(";
+ std::ostringstream syncExprBuf;
+ S->getSynchExpr()->printPretty(syncExprBuf);
+ buf += syncExprBuf.str();
+ buf += ");\n";
buf += " if (_rethrow) objc_exception_throw(_rethrow);\n";
buf += "}\n";
buf += "}";
More information about the cfe-commits
mailing list