forked from OSchip/llvm-project
IFSStub.cpp - consistently use default case to silence 'not all control paths return' MSVC warnings. NFCI.
This commit is contained in:
parent
72dc5cab4f
commit
7c53a7d390
|
@ -64,8 +64,8 @@ uint8_t ifs::convertIFSBitWidthToELF(IFSBitWidthType BitWidth) {
|
|||
return ELF::ELFCLASS32;
|
||||
case IFSBitWidthType::IFS64:
|
||||
return ELF::ELFCLASS64;
|
||||
case IFSBitWidthType::Unknown:
|
||||
llvm_unreachable("unkown bitwidth");
|
||||
default:
|
||||
llvm_unreachable("unknown bitwidth");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ uint8_t ifs::convertIFSEndiannessToELF(IFSEndiannessType Endianness) {
|
|||
return ELF::ELFDATA2LSB;
|
||||
case IFSEndiannessType::Big:
|
||||
return ELF::ELFDATA2MSB;
|
||||
case IFSEndiannessType::Unknown:
|
||||
default:
|
||||
llvm_unreachable("unknown endianness");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue