forked from OSchip/llvm-project
Fixing the build for compilers which do not yet have support for constexpr functions, NFC.
llvm-svn: 218622
This commit is contained in:
parent
b417b8f71f
commit
be8ce197aa
|
@ -120,7 +120,7 @@ public:
|
|||
T& operator*() LLVM_LVALUE_FUNCTION { assert(hasVal); return *getPointer(); }
|
||||
|
||||
template <typename U>
|
||||
constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
|
||||
LLVM_CONSTEXPR T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
|
||||
return hasValue() ? getValue() : std::forward<U>(value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue