Fix for better Windows support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354239
91177308-0d34-0410-b5e6-
96231b3b80d8
OptionalStorage &operator=(OptionalStorage &&other) {
if (other.hasValue())
- emplace(std::move(other).getValue());
+ emplace(std::move(other.getValue()));
else
reset();
return *this;
}
#if LLVM_HAS_RVALUE_REFERENCE_THIS
- T &&getValue() && { return std::move(Storage).getValue(); }
- T &&operator*() && { return std::move(Storage).getValue(); }
+ T &&getValue() && { return std::move(Storage.getValue()); }
+ T &&operator*() && { return std::move(Storage.getValue()); }
template <typename U>
T getValueOr(U &&value) && {