forked from OSchip/llvm-project
[clangd] Fix Context::derive to actually call the right method.
C++ is weird. llvm-svn: 330602
This commit is contained in:
parent
328c90d542
commit
2dee02ea87
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue