[cfe-commits] r152955 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Matt Beaumont-Gay
matthewbg at google.com
Fri Mar 16 15:20:39 PDT 2012
Author: matthewbg
Date: Fri Mar 16 17:20:39 2012
New Revision: 152955
URL: http://llvm.org/viewvc/llvm-project?rev=152955&view=rev
Log:
sink variable into assert
Modified:
cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=152955&r1=152954&r2=152955&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Fri Mar 16 17:20:39 2012
@@ -1717,8 +1717,8 @@
ReplaceText(rparenLoc, 1, buf);
SourceLocation startRBraceLoc = S->getSynchBody()->getLocEnd();
- const char *startRBraceBuf = SM->getCharacterData(startRBraceLoc);
- assert((*startRBraceBuf == '}') && "bogus @synchronized block");
+ assert((*SM->getCharacterData(startRBraceLoc) == '}') &&
+ "bogus @synchronized block");
buf = "} catch (id e) {_rethrow = e;}\n";
Write_RethrowObject(buf);
@@ -6644,4 +6644,3 @@
ReplaceStmtWithRange(IV, Replacement, OldRange);
return Replacement;
}
-
More information about the cfe-commits
mailing list