SynthesizeByrefCopyDestroyHelper(). No change in functionality intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130608
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned VoidPtrSize =
static_cast<unsigned>(Context->getTypeSize(Context->VoidPtrTy));
- unsigned offset = (VoidPtrSize*4 + IntSize + IntSize)/8;
+ unsigned offset = (VoidPtrSize*4 + IntSize + IntSize)/Context->getCharWidth();
S += " _Block_object_assign((char*)dst + ";
S += utostr(offset);
S += ", *(void * *) ((char*)src + ";