diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-04-23 15:27:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-04-23 15:27:42 +0000 |
commit | d313d9bd098668a5a95c6cb3addcd2de70cccdd5 (patch) | |
tree | 80d6a9e4e207601267979add39f2c0551667263c | |
parent | 2f4ac5df520b56df765a65d4c67c0a9a5063af95 (diff) |
[clangd] Fix Context::derive to actually call the right method.
C++ is weird.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@330602 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | clangd/Context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clangd/Context.h b/clangd/Context.h index f6fa1899..486b1235 100644 --- a/clangd/Context.h +++ b/clangd/Context.h @@ -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. |