[clangd] Fix Context::derive to actually call the right method.

C++ is weird.

llvm-svn: 330602
This commit is contained in:
Benjamin Kramer 2018-04-23 15:27:42 +00:00
parent 328c90d542
commit 2dee02ea87
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ public:
template <class Type> Context derive(Type &&Value) && {
static Key<typename std::decay<Type>::type> Private;
return std::move(this)->derive(Private, std::forward<Type>(Value));
return std::move(*this).derive(Private, std::forward<Type>(Value));
}
/// Clone this context object.