diff options
-rw-r--r-- | include/llvm/CodeGen/MachOWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachOWriter.h b/include/llvm/CodeGen/MachOWriter.h index 6507ab6a87..e83fb3039d 100644 --- a/include/llvm/CodeGen/MachOWriter.h +++ b/include/llvm/CodeGen/MachOWriter.h @@ -534,7 +534,7 @@ namespace llvm { } MachOSection *getConstSection(const Type *Ty) { // FIXME: support cstring literals and pointer literal - if (Ty->isPrimitiveType()) { + if (Ty->isPrimitiveType() || Ty->isIntegral()) { unsigned Size = TM.getTargetData()->getTypeSize(Ty); switch(Size) { default: break; // Fall through to __TEXT,__const |