Fix for D119899

This commit is contained in:
David Blaikie 2022-03-04 05:19:51 +00:00
parent 03ce383920
commit d60a65abb6
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ bool llvm::TableGenParseFile(std::unique_ptr<MemoryBuffer> Buffer,
RecordKeeper Records;
Records.saveInputFilename(Buffer->getBufferIdentifier().str());
SrcMgr = SourceMgr();
SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc());
SrcMgr.setIncludeDirs(IncludeDirs);
TGParser Parser(SrcMgr, /*Macros=*/None, Records);