mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 21:00:57 +00:00
20 lines
420 B
Diff
20 lines
420 B
Diff
https://github.com/termux/termux-packages/issues/25322
|
|
|
|
--- a/codon/cir/llvm/llvisitor.cpp
|
|
+++ b/codon/cir/llvm/llvisitor.cpp
|
|
@@ -402,9 +402,12 @@
|
|
if (optimize)
|
|
runLLVMPipeline();
|
|
auto fo = fopen(filename.c_str(), "w");
|
|
- llvm::raw_fd_ostream fout(fileno(fo), true);
|
|
+ {
|
|
+ llvm::raw_fd_ostream fout(fileno(fo), false);
|
|
fout << *M;
|
|
- fout.close();
|
|
+ fout.flush();
|
|
+ }
|
|
+ fclose(fo);
|
|
}
|
|
|
|
namespace {
|