Initialize HighlightingsBuilder::Resolver

Detected by msan with:
-Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1

Differential Revision: https://reviews.llvm.org/D116828
This commit is contained in:
Vitaly Buka 2022-01-07 10:32:24 -08:00
parent ee43259cbc
commit 669eb60046
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ private:
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;
};