[llvm] r212062 - Speculatively fix some code handling Power64 MachO files
Reid Kleckner
reid at kleckner.net
Mon Jun 30 13:12:59 PDT 2014
Author: rnk
Date: Mon Jun 30 15:12:59 2014
New Revision: 212062
URL: http://llvm.org/viewvc/llvm-project?rev=212062&view=rev
Log:
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. :)
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=212062&r1=212061&r2=212062&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Mon Jun 30 15:12:59 2014
@@ -1565,9 +1565,9 @@ Triple MachOObjectFile::getArch(uint32_t
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();
}
More information about the llvm-commits
mailing list