From: Eric Fiselier Date: Sun, 16 Oct 2016 03:49:18 +0000 (+0000) Subject: Fix use of non-constexpr C++14 addressof X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9c7310e7abac3daa09de94f4579c0f41d2924fc;p=platform%2Fupstream%2Fllvm.git Fix use of non-constexpr C++14 addressof llvm-svn: 284325 --- diff --git a/libcxx/include/experimental/optional b/libcxx/include/experimental/optional index ebe11e6..57c5335 100644 --- a/libcxx/include/experimental/optional +++ b/libcxx/include/experimental/optional @@ -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{}); #endif