mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
Moved llvm_unreachable out of switch blocks to avoid the "control reaches end of non-void function" warning.
llvm-svn: 179590
This commit is contained in:
parent
209095cd9f
commit
bab932b850
@ -125,9 +125,10 @@ bool UniversalDriver::link(int argc, const char *argv[],
|
||||
case Flavor::core:
|
||||
return CoreDriver::link(args.size(), args.data(), diagnostics);
|
||||
case Flavor::win_link:
|
||||
llvm_unreachable("Unsupported flavor");
|
||||
break;
|
||||
case Flavor::invalid:
|
||||
return true;
|
||||
}
|
||||
llvm_unreachable("Unsupported flavor");
|
||||
}
|
||||
} // end namespace lld
|
||||
|
@ -111,8 +111,9 @@ uint32_t MachOTargetInfo::getCPUType() const {
|
||||
case MachOTargetInfo::arch_armv7s:
|
||||
return mach_o::CPU_TYPE_ARM;
|
||||
case MachOTargetInfo::arch_unknown:
|
||||
llvm_unreachable("Unknown arch type");
|
||||
break;
|
||||
}
|
||||
llvm_unreachable("Unknown arch type");
|
||||
}
|
||||
|
||||
uint32_t MachOTargetInfo::getCPUSubType() const {
|
||||
@ -128,8 +129,9 @@ uint32_t MachOTargetInfo::getCPUSubType() const {
|
||||
case MachOTargetInfo::arch_armv7s:
|
||||
return mach_o::CPU_SUBTYPE_ARM_V7S;
|
||||
case MachOTargetInfo::arch_unknown:
|
||||
llvm_unreachable("Unknown arch type");
|
||||
break;
|
||||
}
|
||||
llvm_unreachable("Unknown arch type");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user