mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Always inline const_check to improve debug codegen in clang
This commit is contained in:
parent
28d1abc9d2
commit
a3ef285aec
@ -364,7 +364,9 @@ constexpr auto is_constant_evaluated(bool default_value = false) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Suppresses "conditional expression is constant" warnings.
|
// Suppresses "conditional expression is constant" warnings.
|
||||||
template <typename T> constexpr auto const_check(T value) -> T { return value; }
|
template <typename T> FMT_ALWAYS_INLINE constexpr auto const_check(T val) -> T {
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
|
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
|
||||||
const char* message);
|
const char* message);
|
||||||
|
Loading…
Reference in New Issue
Block a user