Speculatively fix some code handling Power64 MachO files

MSVC was warning on a switch containing only default labels.  In this
instance, it looks like it uncovered a real bug.  :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner 2014-06-30 20:12:59 +00:00
parent 3b15c970ab
commit b23ae55c4d

View 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();
}