libstdc++: Have std::addressof use __builtin_addressof
Rather than calling std::__addressof in std::addressof we can directly call __builtin_addressof to bypass 1 function call. libstdc++-v3/ChangeLog: * include/bits/move.h (std::addressof): Call __builtin_addressof.
This commit is contained in:
parent
24df430108
commit
33502a11e4
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
_GLIBCXX_NODISCARD
|
||||
inline _GLIBCXX17_CONSTEXPR _Tp*
|
||||
addressof(_Tp& __r) noexcept
|
||||
{ return std::__addressof(__r); }
|
||||
{ return __builtin_addressof(__r); }
|
||||
|
||||
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||
// 2598. addressof works on temporaries
|
||||
|
|
Loading…
Add table
Reference in a new issue