[clang][Index] Fix msan failure

llvm-svn: 355683
This commit is contained in:
Kadir Cetinkaya 2019-03-08 10:18:40 +00:00
parent 64852e901a
commit e44078769c
1 changed files with 7 additions and 2 deletions

View File

@ -91,10 +91,15 @@ public:
return true;
}
bool handleMacroOccurence(const IdentifierInfo *Name, const MacroInfo *,
SymbolRoleSet, SourceLocation) override {
bool handleMacroOccurence(const IdentifierInfo *Name, const MacroInfo *MI,
SymbolRoleSet Roles, SourceLocation Loc) override {
TestSymbol S;
S.SymInfo = getSymbolInfoForMacro(*MI);
S.QName = Name->getName();
S.WrittenPos = Position::fromSourceLocation(Loc, AST->getSourceManager());
S.DeclPos = Position::fromSourceLocation(MI->getDefinitionLoc(),
AST->getSourceManager());
S.Roles = Roles;
Symbols.push_back(std::move(S));
return true;
}