From c0a42c263e1cf8f3d3cd69afec9c4264d23c616c Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Sat, 15 Mar 2014 04:05:59 +0000 Subject: Support: Make error_category's constructor public Since our error_category is based on the std one, we should have the same visibility for the constructor. This also allows us to avoid using the _do_message implementation detail in our own categories. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203998 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Bitcode/Reader') diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 19528c8e67..ab0a1249f2 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -3257,7 +3257,7 @@ error_code BitcodeReader::InitLazyStream() { } namespace { -class BitcodeErrorCategoryType : public _do_message { +class BitcodeErrorCategoryType : public error_category { const char *name() const override { return "llvm.bitcode"; } -- cgit v1.2.3