Skip to content

Commit dccd14c

Browse files
committed
Fix MLIR build
1 parent f6326cf commit dccd14c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/tools/mlir-pdll/mlir-pdll.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "llvm/Support/InitLLVM.h"
2020
#include "llvm/Support/SourceMgr.h"
2121
#include "llvm/Support/ToolOutputFile.h"
22+
#include "llvm/Support/VirtualFileSystem.h"
2223
#include <set>
2324

2425
using namespace mlir;
@@ -40,6 +41,7 @@ processBuffer(raw_ostream &os, std::unique_ptr<llvm::MemoryBuffer> chunkBuffer,
4041
OutputType outputType, std::vector<std::string> &includeDirs,
4142
bool dumpODS, std::set<std::string> *includedFiles) {
4243
llvm::SourceMgr sourceMgr;
44+
sourceMgr.setFileSystem(llvm::vfs::getRealFileSystem());
4345
sourceMgr.setIncludeDirs(includeDirs);
4446
sourceMgr.AddNewSourceBuffer(std::move(chunkBuffer), SMLoc());
4547

0 commit comments

Comments
 (0)