r249302 - Use llvm::errc instead of std::errc.
Rafael Espindola via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 5 04:49:36 PDT 2015
Author: rafael
Date: Mon Oct 5 06:49:35 2015
New Revision: 249302
URL: http://llvm.org/viewvc/llvm-project?rev=249302&view=rev
Log:
Use llvm::errc instead of std::errc.
Modified:
cfe/trunk/lib/Frontend/CompilerInstance.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=249302&r1=249301&r2=249302&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Mon Oct 5 06:49:35 2015
@@ -641,7 +641,7 @@ std::unique_ptr<llvm::raw_pwrite_stream>
if (llvm::sys::fs::exists(Status)) {
// Fail early if we can't write to the final destination.
if (!llvm::sys::fs::can_write(OutputPath)) {
- Error = std::make_error_code(std::errc::operation_not_permitted);
+ Error = make_error_code(llvm::errc::operation_not_permitted);
return nullptr;
}
More information about the cfe-commits
mailing list