mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
This code is from r216285, which did not go out to the mailing list for some reason.
The switch statement would never fire due to the preceding break statement. Also, the switch statement has a default label with no case labels. Simplified the code, and allow it to execute. llvm-svn: 216346
This commit is contained in:
parent
f1b643ba53
commit
f154999a11
@ -1036,12 +1036,7 @@ static void PrintMachHeader(uint32_t magic, uint32_t cputype,
|
||||
break;
|
||||
case MachO::CPU_SUBTYPE_X86_64_H:
|
||||
outs() << " Haswell";
|
||||
break;
|
||||
switch (cpusubtype & ~MachO::CPU_SUBTYPE_MASK) {
|
||||
default:
|
||||
outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
|
||||
break;
|
||||
}
|
||||
outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
|
||||
break;
|
||||
case MachO::CPU_TYPE_ARM:
|
||||
outs() << " ARM";
|
||||
|
Loading…
Reference in New Issue
Block a user