[compiler-rt] 8aed916 - [NFC] remove static asserts

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 15:27:55 PST 2023


Author: Florian Mayer
Date: 2023-11-14T15:27:40-08:00
New Revision: 8aed91631df31dc29dae673c4a601261e664d92d

URL: https://github.com/llvm/llvm-project/commit/8aed91631df31dc29dae673c4a601261e664d92d
DIFF: https://github.com/llvm/llvm-project/commit/8aed91631df31dc29dae673c4a601261e664d92d.diff

LOG: [NFC] remove static asserts

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/flags_parser.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/flags_parser.cpp b/compiler-rt/lib/scudo/standalone/flags_parser.cpp
index 10da6754be821bf..6f9b23ea90e23cc 100644
--- a/compiler-rt/lib/scudo/standalone/flags_parser.cpp
+++ b/compiler-rt/lib/scudo/standalone/flags_parser.cpp
@@ -144,8 +144,6 @@ bool FlagParser::runHandler(const char *Name, const char *Value,
     case FlagType::FT_int:
       char *ValueEnd;
       long V = strtol(Value, &ValueEnd, 10);
-      static_assert(INT_MAX <= LONG_MAX);
-      static_assert(INT_MIN >= LONG_MIN);
       // strtol returns LONG_MAX on overflow and LONG_MIN on underflow.
       // This is why we compare-equal here (and lose INT_MIN and INT_MAX as a
       // value, but that's okay)


        


More information about the llvm-commits mailing list