From 33f952ff1c48f34c5a9c8fec24af33676866d2a7 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 21 Jul 2021 11:59:08 +0100 Subject: [PATCH] IFSStub.cpp - consistently use default case to silence 'not all control paths return' MSVC warnings. NFCI. --- lib/InterfaceStub/IFSStub.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/InterfaceStub/IFSStub.cpp b/lib/InterfaceStub/IFSStub.cpp index 24c29f3db5b..bbc91ada1de 100644 --- a/lib/InterfaceStub/IFSStub.cpp +++ b/lib/InterfaceStub/IFSStub.cpp @@ -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"); } }