he32 created this revision. Herald added a subscriber: krytarowski. Herald added a project: All. he32 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Use the long-established `operation_not_supported` instead of the rather newfangled `state_not_recoverable` error code. The latter is not available on NetBSD 9.x, due to the host system not having `ENOTRECOVERABLE` defined. NetBSD-current and the coming 10.0 will have it, though. However, it can also be argued that `operation_not_supported` is a better fit for the actual error message, which in essence says "Incremental mode for action %d is not supported". Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D140707 Files: clang/lib/Interpreter/IncrementalParser.cpp Index: clang/lib/Interpreter/IncrementalParser.cpp =================================================================== --- clang/lib/Interpreter/IncrementalParser.cpp +++ clang/lib/Interpreter/IncrementalParser.cpp @@ -53,7 +53,7 @@ switch (CI.getFrontendOpts().ProgramAction) { default: Err = llvm::createStringError( - std::errc::state_not_recoverable, + std::errc::operation_not_supported, "Driver initialization failed. " "Incremental mode for action %d is not supported", CI.getFrontendOpts().ProgramAction);
Index: clang/lib/Interpreter/IncrementalParser.cpp =================================================================== --- clang/lib/Interpreter/IncrementalParser.cpp +++ clang/lib/Interpreter/IncrementalParser.cpp @@ -53,7 +53,7 @@ switch (CI.getFrontendOpts().ProgramAction) { default: Err = llvm::createStringError( - std::errc::state_not_recoverable, + std::errc::operation_not_supported, "Driver initialization failed. " "Incremental mode for action %d is not supported", CI.getFrontendOpts().ProgramAction);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits