[PATCH] D116828: Initialize HighlightingsBuilder::Resolver
Vitaly Buka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 11:01:20 PST 2022
vitalybuka created this revision.
vitalybuka added reviewers: kda, eugenis.
Herald added subscribers: usaxena95, kadircet, arphaman.
vitalybuka requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Detected by msan with:
-Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116828
Files:
clang-tools-extra/clangd/SemanticHighlighting.cpp
Index: clang-tools-extra/clangd/SemanticHighlighting.cpp
===================================================================
--- clang-tools-extra/clangd/SemanticHighlighting.cpp
+++ clang-tools-extra/clangd/SemanticHighlighting.cpp
@@ -468,7 +468,7 @@
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;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116828.398199.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220107/a1947b97/attachment.bin>
More information about the cfe-commits
mailing list