Fix use of non-constexpr C++14 addressof

llvm-svn: 284325
This commit is contained in:
Eric Fiselier 2016-10-16 03:49:18 +00:00
parent f72aaff994
commit f9c7310e7a
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ public:
{
_LIBCPP_ASSERT(this->__engaged_, "optional operator-> called for disengaged value");
#ifndef _LIBCPP_HAS_NO_BUILTIN_ADDRESSOF
return _VSTD::addressof(this->__val_);
return __builtin_addressof(this->__val_);
#else
return __operator_arrow(__has_operator_addressof<value_type>{});
#endif