Differential Revision: https://reviews.llvm.org/D51380
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340929
91177308-0d34-0410-b5e6-
96231b3b80d8
return nullptr;
}
+static llvm::ManagedStatic<BuildPreambleErrorCategory> BuildPreambleErrCategory;
+
std::error_code clang::make_error_code(BuildPreambleError Error) {
- return std::error_code(static_cast<int>(Error), BuildPreambleErrorCategory());
+ return std::error_code(static_cast<int>(Error), *BuildPreambleErrCategory);
}
const char *BuildPreambleErrorCategory::name() const noexcept {