const Type *Ty = C->getType();
if (Ty->isPrimitiveType() || Ty->isInteger()) {
- unsigned Size = TM.getTargetData()->getABITypeSize(Ty);
+ unsigned Size = TM.getTargetData()->getTypePaddedSize(Ty);
switch(Size) {
default: break; // Fall through to __TEXT,__const
case 4: