[libc-commits] [libc] [libc][stdfix] Implement `idivfx` functions in LLVM libc (PR #133005)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Apr 16 14:14:32 PDT 2025
================
@@ -19,10 +19,19 @@
if (LIBC_UNLIKELY((ptr) == nullptr)) \
__builtin_trap(); \
} while (0)
+#define LIBC_CRASH_ON_VALUE(var, value) \
+ do { \
+ if (LIBC_UNLIKELY((var) == (value))) \
+ __builtin_trap(); \
+ } while (0)
+
----------------
michaelrj-google wrote:
I'm not sure this is necessary. Can you explain why this would be more useful than `LIBC_ASSERT` which provides better diagnostics for runtime assertions?
https://github.com/llvm/llvm-project/pull/133005
More information about the libc-commits
mailing list