diff options
Diffstat (limited to 'lib/ARCMigrate/PlistReporter.cpp')
-rw-r--r-- | lib/ARCMigrate/PlistReporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ARCMigrate/PlistReporter.cpp b/lib/ARCMigrate/PlistReporter.cpp index 6b34ef0..53398b2 100644 --- a/lib/ARCMigrate/PlistReporter.cpp +++ b/lib/ARCMigrate/PlistReporter.cpp @@ -56,9 +56,9 @@ void arcmt::writeARCDiagsToPlist(const std::string &outPath, } } - std::string errMsg; - llvm::raw_fd_ostream o(outPath.c_str(), errMsg, llvm::sys::fs::F_Text); - if (!errMsg.empty()) { + std::error_code EC; + llvm::raw_fd_ostream o(outPath, EC, llvm::sys::fs::F_Text); + if (EC) { llvm::errs() << "error: could not create file: " << outPath << '\n'; return; } |