aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index e2d1723..bd9b5dd1 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -134,7 +134,7 @@ static unsigned getCPUType(const MachOObjectFile &O) {
}
static unsigned getCPUSubType(const MachOObjectFile &O) {
- return O.getHeader().cpusubtype;
+ return O.getHeader().cpusubtype & ~MachO::CPU_SUBTYPE_MASK;
}
static uint32_t