[cfe-commits] r92801 - /cfe/trunk/lib/Frontend/RewriteObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Jan 5 15:06:30 PST 2010
Author: fjahanian
Date: Tue Jan 5 17:06:29 2010
New Revision: 92801
URL: http://llvm.org/viewvc/llvm-project?rev=92801&view=rev
Log:
Fixed a bug where initializer is a macro in rewrite.
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=92801&r1=92800&r2=92801&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/RewriteObjC.cpp (original)
+++ cfe/trunk/lib/Frontend/RewriteObjC.cpp Tue Jan 5 17:06:29 2010
@@ -4540,6 +4540,7 @@
}
else {
SourceLocation startLoc = ND->getInit()->getLocStart();
+ startLoc = SM->getInstantiationLoc(startLoc);
ByrefType += " " + Name;
ReplaceText(DeclLoc, endBuf-startBuf,
ByrefType.c_str(), ByrefType.size());
More information about the cfe-commits
mailing list