diff options
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
| -rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index fd3efe560b6..b145297d11f 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -4540,6 +4540,7 @@ void RewriteObjC::RewriteByRefVar(VarDecl *ND) { } else { SourceLocation startLoc = ND->getInit()->getLocStart(); + startLoc = SM->getInstantiationLoc(startLoc); ByrefType += " " + Name; ReplaceText(DeclLoc, endBuf-startBuf, ByrefType.c_str(), ByrefType.size()); |

