[libc-commits] [libc] 7c1a988 - [libc][Obvious] Add a default clause to RoundingModeUtils.h to suppress gcc

Tue Ly via libc-commits libc-commits at lists.llvm.org
Wed Feb 1 10:39:32 PST 2023


Author: Tue Ly
Date: 2023-02-01T13:38:46-05:00
New Revision: 7c1a98854e5f20a9e29bda1e2d6d0c054ffb3135

URL: https://github.com/llvm/llvm-project/commit/7c1a98854e5f20a9e29bda1e2d6d0c054ffb3135
DIFF: https://github.com/llvm/llvm-project/commit/7c1a98854e5f20a9e29bda1e2d6d0c054ffb3135.diff

LOG: [libc][Obvious] Add a default clause to RoundingModeUtils.h to suppress gcc
warning.

Added: 
    

Modified: 
    libc/utils/testutils/RoundingModeUtils.cpp

Removed: 
    


################################################################################
diff  --git a/libc/utils/testutils/RoundingModeUtils.cpp b/libc/utils/testutils/RoundingModeUtils.cpp
index 1f071083489fd..aff3380971976 100644
--- a/libc/utils/testutils/RoundingModeUtils.cpp
+++ b/libc/utils/testutils/RoundingModeUtils.cpp
@@ -27,6 +27,8 @@ int get_fe_rounding(RoundingMode mode) {
   case RoundingMode::Nearest:
     return FE_TONEAREST;
     break;
+  default:
+    __builtin_unreachable();
   }
 }
 


        


More information about the libc-commits mailing list