forked from OSchip/llvm-project
parent
c40b0f72bb
commit
6e177d3155
|
@ -1717,8 +1717,8 @@ Stmt *RewriteModernObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S)
|
||||||
ReplaceText(rparenLoc, 1, buf);
|
ReplaceText(rparenLoc, 1, buf);
|
||||||
|
|
||||||
SourceLocation startRBraceLoc = S->getSynchBody()->getLocEnd();
|
SourceLocation startRBraceLoc = S->getSynchBody()->getLocEnd();
|
||||||
const char *startRBraceBuf = SM->getCharacterData(startRBraceLoc);
|
assert((*SM->getCharacterData(startRBraceLoc) == '}') &&
|
||||||
assert((*startRBraceBuf == '}') && "bogus @synchronized block");
|
"bogus @synchronized block");
|
||||||
|
|
||||||
buf = "} catch (id e) {_rethrow = e;}\n";
|
buf = "} catch (id e) {_rethrow = e;}\n";
|
||||||
Write_RethrowObject(buf);
|
Write_RethrowObject(buf);
|
||||||
|
@ -6644,4 +6644,3 @@ Stmt *RewriteModernObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV) {
|
||||||
ReplaceStmtWithRange(IV, Replacement, OldRange);
|
ReplaceStmtWithRange(IV, Replacement, OldRange);
|
||||||
return Replacement;
|
return Replacement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue