Skip to content

Commit

Permalink
onnxtempdumpXXX should be created under /tmp (llvm#1079)
Browse files Browse the repository at this point in the history
Signed-off-by: Gong Su <[email protected]>
  • Loading branch information
gongsu832 authored Jan 6, 2022
1 parent b14acff commit 22e7923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transform/ONNX/ONNXOpTransformPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct ONNXOpTransformPass : public mlir::PassWrapper<ONNXOpTransformPass,
strcpy(tempFile, "onnxtempdumpXXXXXX");
_mktemp(tempFile);
#else
strcpy(tempFile, "onnxtempdumpXXXXXX");
strcpy(tempFile, "/tmp/onnxtempdumpXXXXXX");
(void)mkstemp(tempFile);
#endif
outputCode(module, tempFile);
Expand Down

0 comments on commit 22e7923

Please sign in to comment.