zml/module.zig: Remove unnecessary optional unwrapping.

This commit is contained in:
Tarry Singh 2023-12-05 12:27:08 +00:00
parent 37725cdaa6
commit 6a4a7fb9a1

View File

@ -235,7 +235,7 @@ pub const CompilationContext = struct {
} }
} }
const loaded_executable = compileModuleToPjrtExecutable(arena, self._platform, module, module_dir.?) catch |err| { const loaded_executable = compileModuleToPjrtExecutable(arena, self._platform, module, module_dir) catch |err| {
log.err( log.err(
"pjrt-{s} failed to compile following valid MLIR:\n{}\n{}", "pjrt-{s} failed to compile following valid MLIR:\n{}\n{}",
.{ @tagName(self._platform.target), module.op().mlirFormatter(.{}), err }, .{ @tagName(self._platform.target), module.op().mlirFormatter(.{}), err },