[llvm] ff7dfe4 - [DebugInfo][MSF] Silence 'not all control paths return a value' warning
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 15 11:20:38 PDT 2023
Author: Alexandre Ganea
Date: 2023-03-15T14:20:18-04:00
New Revision: ff7dfe4c403c11396e4242c9815bf7bd7bd3afaf
URL: https://github.com/llvm/llvm-project/commit/ff7dfe4c403c11396e4242c9815bf7bd7bd3afaf
DIFF: https://github.com/llvm/llvm-project/commit/ff7dfe4c403c11396e4242c9815bf7bd7bd3afaf.diff
LOG: [DebugInfo][MSF] Silence 'not all control paths return a value' warning
when building with MSVC on Windows
Added:
Modified:
llvm/include/llvm/DebugInfo/MSF/MSFError.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/MSF/MSFError.h b/llvm/include/llvm/DebugInfo/MSF/MSFError.h
index 88c823f603cf5..0d0a43102a9b0 100644
--- a/llvm/include/llvm/DebugInfo/MSF/MSFError.h
+++ b/llvm/include/llvm/DebugInfo/MSF/MSFError.h
@@ -64,6 +64,7 @@ class MSFError : public ErrorInfo<MSFError, StringError> {
case msf_error_code::stream_directory_overflow:
return true;
}
+ llvm_unreachable("msf error code not implemented");
}
static char ID;
More information about the llvm-commits
mailing list