Replace a literal 8 with Context->getCharWidth() in

SynthesizeByrefCopyDestroyHelper(). No change in functionality intended.

llvm-svn: 130608
This commit is contained in:
Ken Dyck 2011-04-30 16:08:27 +00:00
parent 61f4cbf38a
commit d9c83e6cdf
1 changed files with 1 additions and 1 deletions

View File

@ -5057,7 +5057,7 @@ std::string RewriteObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD,
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 + ";