forked from OSchip/llvm-project
Fix for D119899
This commit is contained in:
parent
03ce383920
commit
d60a65abb6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue