forked from OSchip/llvm-project
Replace a literal 8 with Context->getCharWidth() in
SynthesizeByrefCopyDestroyHelper(). No change in functionality intended. llvm-svn: 130608
This commit is contained in:
parent
61f4cbf38a
commit
d9c83e6cdf
|
@ -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 + ";
|
||||
|
|
Loading…
Reference in New Issue