[clang-tools-extra] 669eb60 - Initialize HighlightingsBuilder::Resolver
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 15:21:37 PST 2022
Author: Vitaly Buka
Date: 2022-01-07T15:21:22-08:00
New Revision: 669eb60046706c096d4d7804359670f3ca18ed7a
URL: https://github.com/llvm/llvm-project/commit/669eb60046706c096d4d7804359670f3ca18ed7a
DIFF: https://github.com/llvm/llvm-project/commit/669eb60046706c096d4d7804359670f3ca18ed7a.diff
LOG: Initialize HighlightingsBuilder::Resolver
Detected by msan with:
-Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1
Differential Revision: https://reviews.llvm.org/D116828
Added:
Modified:
clang-tools-extra/clangd/SemanticHighlighting.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/SemanticHighlighting.cpp b/clang-tools-extra/clangd/SemanticHighlighting.cpp
index 76e810f5a3b83..796efedcc3991 100644
--- a/clang-tools-extra/clangd/SemanticHighlighting.cpp
+++ b/clang-tools-extra/clangd/SemanticHighlighting.cpp
@@ -468,7 +468,7 @@ class HighlightingsBuilder {
const LangOptions &LangOpts;
std::vector<HighlightingToken> Tokens;
std::map<Range, llvm::SmallVector<HighlightingModifier, 1>> ExtraModifiers;
- const HeuristicResolver *Resolver;
+ const HeuristicResolver *Resolver = nullptr;
// returned from addToken(InvalidLoc)
HighlightingToken InvalidHighlightingToken;
};
More information about the cfe-commits
mailing list