diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp --- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp @@ -251,7 +251,8 @@ for (auto libPath : sharedLibPaths) { auto mb = llvm::MemoryBuffer::getFile(libPath); if (!mb) { - errs() << "Fail to create MemoryBuffer for: " << libPath << "\n"; + errs() << "Failed to create MemoryBuffer for: " << libPath + << "\nError: " << mb.getError().message() << "\n"; continue; } auto &JD = session.createBareJITDylib(std::string(libPath));