From ff7dfe4c403c11396e4242c9815bf7bd7bd3afaf Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Wed, 15 Mar 2023 14:19:12 -0400 Subject: [PATCH] [DebugInfo][MSF] Silence 'not all control paths return a value' warning when building with MSVC on Windows --- llvm/include/llvm/DebugInfo/MSF/MSFError.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/DebugInfo/MSF/MSFError.h b/llvm/include/llvm/DebugInfo/MSF/MSFError.h index 88c823f..0d0a431 100644 --- a/llvm/include/llvm/DebugInfo/MSF/MSFError.h +++ b/llvm/include/llvm/DebugInfo/MSF/MSFError.h @@ -64,6 +64,7 @@ public: case msf_error_code::stream_directory_overflow: return true; } + llvm_unreachable("msf error code not implemented"); } static char ID; -- 2.7.4