diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-07-21 18:31:47 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-07-21 18:31:47 +0000 |
commit | 10f8e319569c8b8b4603d8a72ce01a7a01502c85 (patch) | |
tree | 8eafdfcbc082d3e5e2def91b6f335529652c2c43 /lib/Rewrite/RewriteObjC.cpp | |
parent | ad4f387b451372c3e9b533995aa216678b78c53d (diff) |
Fix source location of the initializer in
a copy initialization. Back out hack in objc rewriter.
fixes radar 8213998.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/RewriteObjC.cpp')
-rw-r--r-- | lib/Rewrite/RewriteObjC.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Rewrite/RewriteObjC.cpp b/lib/Rewrite/RewriteObjC.cpp index 2743a2bdc1..7c88d49c7b 100644 --- a/lib/Rewrite/RewriteObjC.cpp +++ b/lib/Rewrite/RewriteObjC.cpp @@ -5098,14 +5098,6 @@ void RewriteObjC::RewriteByRefVar(VarDecl *ND) { startLoc = E->getLocStart(); startLoc = SM->getInstantiationLoc(startLoc); endBuf = SM->getCharacterData(startLoc); - if (dyn_cast<CXXConstructExpr>(E)) { - // Hack alter! - // SemaInit sets startLoc to beginning of the initialized variable when - // rhs involvs copy construction initialization. Must compensate for this. - if (char *atEqual = strchr(endBuf, '=')) - endBuf = atEqual + 1; - } - ByrefType += " " + Name; ByrefType += " = {(void*)"; ByrefType += utostr(isa); |