mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-25 01:12:08 +00:00
Mark the newly added '__libcpp_is_constant_evaluated' as 'inline', since it can be included multiple times by multiple headers, and we don't want 'duplicate definition' errors.
llvm-svn: 364879
This commit is contained in:
parent
adeab8d754
commit
745379a0af
@ -4007,9 +4007,11 @@ inline constexpr bool is_constant_evaluated() noexcept {
|
||||
}
|
||||
#endif
|
||||
|
||||
_LIBCPP_CONSTEXPR bool __libcpp_is_constant_evaluated() _NOEXCEPT { return __builtin_is_constant_evaluated(); }
|
||||
inline _LIBCPP_CONSTEXPR
|
||||
bool __libcpp_is_constant_evaluated() _NOEXCEPT { return __builtin_is_constant_evaluated(); }
|
||||
#else
|
||||
_LIBCPP_CONSTEXPR bool __libcpp_is_constant_evaluated() _NOEXCEPT { return false; }
|
||||
inline _LIBCPP_CONSTEXPR
|
||||
bool __libcpp_is_constant_evaluated() _NOEXCEPT { return false; }
|
||||
#endif
|
||||
|
||||
template <class _CharT>
|
||||
|
Loading…
Reference in New Issue
Block a user