1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Fixing the build for compilers which do not yet have support for constexpr functions, NFC.

llvm-svn: 218622
This commit is contained in:
Aaron Ballman 2014-09-29 20:27:01 +00:00
parent 546768112a
commit 4f811bbdbf

View File

@ -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);
}