[PATCH] D100130: [SystemZ][z/OS][Windows] Add new functions that set Text/Binary mode for Stdin and Stdout based on OpenFlags

Anirudh Prasad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 9 10:58:33 PDT 2021


anirudhp added inline comments.


================
Comment at: llvm/lib/Support/raw_ostream.cpp:578
+    // Change stdout's text/binary mode based on the Flags.
+    sys::ChangeStdoutMode(Flags);
     return STDOUT_FILENO;
----------------
We are foregoing the check for the code returned by here. Is this okay? Should we be complete and assign it to EC? On unix this shouldn't matter because it just returns std::error_code (which is already what EC is). However, Windows seems to be different.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100130/new/

https://reviews.llvm.org/D100130



More information about the llvm-commits mailing list