Speculatively fix some code handling Power64 MachO files
[opencl/llvm.git] / lib / Object / MachOObjectFile.cpp
index 74917a5326ef648224a93d8dc313e7f93632a2d1..50e7f63a9307917cd68e302e6c59792399e5063b 100644 (file)
@@ -1565,9 +1565,9 @@ Triple MachOObjectFile::getArch(uint32_t CPUType, uint32_t CPUSubType) {
       return Triple();
     }
   case MachO::CPU_TYPE_POWERPC64:
+    switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) {
     case MachO::CPU_SUBTYPE_POWERPC_ALL:
       return Triple("ppc64-apple-darwin");
-    switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) {
     default:
       return Triple();
     }