diff --git a/clang-tools-extra/clangd/ConfigFragment.h b/clang-tools-extra/clangd/ConfigFragment.h --- a/clang-tools-extra/clangd/ConfigFragment.h +++ b/clang-tools-extra/clangd/ConfigFragment.h @@ -51,8 +51,8 @@ : Range(Range), Value(std::move(Value)) {} llvm::SMRange Range; - T &operator->() { return Value; } - const T &operator->() const { return Value; } + T *operator->() { return &Value; } + const T *operator->() const { return &Value; } T &operator*() { return Value; } const T &operator*() const { return Value; }