diff options
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachOWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachOWriter.h b/llvm/include/llvm/CodeGen/MachOWriter.h index 6507ab6a875..e83fb3039db 100644 --- a/llvm/include/llvm/CodeGen/MachOWriter.h +++ b/llvm/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 |

