Properly promote operands when optimizing a single-character memcmp.
[oota-llvm.git] / utils / FileUpdate / FileUpdate.cpp
index 8d5d6b1b905ce776f4d7dbd95605e2787e32baa5..26fd75ef68b3eef0d73833ebda3b83fa82c02cc3 100644 (file)
@@ -65,8 +65,8 @@ int main(int argc, char **argv) {
   if (!Quiet)
     outs() << argv[0] << ": Updating '" << OutputFilename
            << "', contents changed.\n";
-  raw_fd_ostream OutStream(OutputFilename.c_str(), /*Binary=*/true,
-                           /*Force=*/true, ErrorStr);
+  raw_fd_ostream OutStream(OutputFilename.c_str(), ErrorStr,
+                           raw_fd_ostream::F_Binary);
   if (!ErrorStr.empty()) {
     errs() << argv[0] << ": Unable to write output '"
            << OutputFilename << "': " << ErrorStr << '\n';