From d32d20f3a05abf74ecc11848a672d4cac4fa45cd Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 1 Jul 2024 12:10:36 +0100 Subject: [PATCH] NumericalStabilitySanitizer.cpp - fix MSVC "not all control paths return a value" warnings. NFC. --- .../Transforms/Instrumentation/NumericalStabilitySanitizer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp index 6207d4246925..99b1c779f316 100644 --- a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp @@ -239,6 +239,7 @@ static Type *typeFromFTValueType(FTValueType VT, LLVMContext &Context) { case kNumValueTypes: return nullptr; } + llvm_unreachable("Unhandled FTValueType enum"); } // Returns the type name for an FTValueType. @@ -253,6 +254,7 @@ static const char *typeNameFromFTValueType(FTValueType VT) { case kNumValueTypes: return nullptr; } + llvm_unreachable("Unhandled FTValueType enum"); } // A specific mapping configuration of application type to shadow type for nsan @@ -395,6 +397,7 @@ public: case kStore: return Builder.CreatePtrToInt(Address, IntptrTy); } + llvm_unreachable("Unhandled CheckType enum"); } private: