Try to fix ODR violation of ErrorInfo::ID

This implements my suggestion to Lang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264360 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner
2016-03-24 23:49:34 +00:00
parent 7121713797
commit c68f3d4c8d
4 changed files with 22 additions and 13 deletions
+2 -3
View File
@@ -36,9 +36,8 @@ namespace {
void ErrorInfoBase::anchor() {}
char ErrorInfoBase::ID = 0;
template <> char ErrorInfo<ErrorList>::ID = 0;
template <> char ErrorInfo<ECError>::ID = 0;
char ErrorList::ID = 0;
char ECError::ID = 0;
static ManagedStatic<ErrorErrorCategory> ErrorErrorCat;