diff options
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.h')
-rw-r--r-- | llvm/lib/CodeGen/MachOWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.h b/llvm/lib/CodeGen/MachOWriter.h index aacaf2c9e03..20a4084638e 100644 --- a/llvm/lib/CodeGen/MachOWriter.h +++ b/llvm/lib/CodeGen/MachOWriter.h @@ -468,7 +468,7 @@ namespace llvm { const Type *Ty = C->getType(); if (Ty->isPrimitiveType() || Ty->isInteger()) { - unsigned Size = TM.getTargetData()->getTypePaddedSize(Ty); + unsigned Size = TM.getTargetData()->getTypeAllocSize(Ty); switch(Size) { default: break; // Fall through to __TEXT,__const case 4: |