]> granicus.if.org Git - clang/commitdiff
Use llvm::errc instead of std::errc.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 5 Oct 2015 11:49:35 +0000 (11:49 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 5 Oct 2015 11:49:35 +0000 (11:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249302 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInstance.cpp

index cdf29ec3c4ef8acf39f12690e0e73ce5c7671750..740524ce2c527c1c14377c04f4af88eb4b2c02e7 100644 (file)
@@ -641,7 +641,7 @@ std::unique_ptr<llvm::raw_pwrite_stream> CompilerInstance::createOutputFile(
       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;
         }