From 669eb60046706c096d4d7804359670f3ca18ed7a Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 7 Jan 2022 10:32:24 -0800 Subject: [PATCH] Initialize HighlightingsBuilder::Resolver Detected by msan with: -Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1 Differential Revision: https://reviews.llvm.org/D116828 --- clang-tools-extra/clangd/SemanticHighlighting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/SemanticHighlighting.cpp b/clang-tools-extra/clangd/SemanticHighlighting.cpp index 76e810f5a3b8..796efedcc399 100644 --- a/clang-tools-extra/clangd/SemanticHighlighting.cpp +++ b/clang-tools-extra/clangd/SemanticHighlighting.cpp @@ -468,7 +468,7 @@ private: const LangOptions &LangOpts; std::vector Tokens; std::map> ExtraModifiers; - const HeuristicResolver *Resolver; + const HeuristicResolver *Resolver = nullptr; // returned from addToken(InvalidLoc) HighlightingToken InvalidHighlightingToken; };