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 b417b8f71f
commit be8ce197aa
1 changed files with 1 additions and 1 deletions

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