Skip to content

Commit 3f9bea2

Browse files
committed
[CHERI] Minor fixes to libc++ forward-merging discovered while updating cheriot-rtos.
1 parent 1153d07 commit 3f9bea2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libcxx/include/__bit/rotate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ template <__libcpp_unsigned_integer _Tp>
6262

6363
#if __has_feature(capabilities)
6464
template<>
65-
_LIBCPP_HIDE_FROM_ABI constexpr inline unsigned __intcap rotl(unsigned __intcap __t, unsigned int __cnt) noexcept {
65+
_LIBCPP_HIDE_FROM_ABI constexpr inline unsigned __intcap rotl(unsigned __intcap __t, int __cnt) noexcept {
6666
// __builtin_cheri_address_set cannot be used in a constant expression (yet), so we return a null-derived integer.
6767
return std::rotl(static_cast<ptraddr_t>(__t), __cnt);
6868
}

libcxx/include/__functional/hash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ template <>
435435
struct _LIBCPP_TEMPLATE_VIS hash<__intcap_t>
436436
: public __unary_function<__intcap_t, size_t>
437437
{
438-
_LIBCPP_INLINE_VISIBILITY
438+
_LIBCPP_HIDE_FROM_ABI
439439
size_t operator()(__intcap_t x) const _NOEXCEPT {
440440
return hash<ptraddr_t>()(static_cast<ptraddr_t>(x));
441441
}
@@ -445,7 +445,7 @@ template <>
445445
struct _LIBCPP_TEMPLATE_VIS hash<__uintcap_t>
446446
: public __unary_function<__uintcap_t, size_t>
447447
{
448-
_LIBCPP_INLINE_VISIBILITY
448+
_LIBCPP_HIDE_FROM_ABI
449449
size_t operator()(__uintcap_t x) const _NOEXCEPT {
450450
return hash<ptraddr_t>()(static_cast<ptraddr_t>(x));
451451
}

libcxx/include/__utility/convert_to_integral.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __uint128_t __convert_to_integral
4949
#endif
5050

5151
#if __has_feature(capabilities)
52-
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
52+
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR
5353
__intcap __convert_to_integral(__intcap __val) { return __val; }
5454

55-
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
55+
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR
5656
unsigned __intcap __convert_to_integral(unsigned __intcap __val) { return __val; }
5757
#endif
5858

0 commit comments

Comments
 (0)