[Support] Add ErrorInfo::ID static member definition.
authorLang Hames <lhames@gmail.com>
Thu, 24 Mar 2016 21:17:50 +0000 (21:17 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 24 Mar 2016 21:17:50 +0000 (21:17 +0000)
Somehow this got dropped in an earlier patch.

llvm-svn: 264341

llvm/include/llvm/Support/Error.h

index ed3d407..14d7ab0 100644 (file)
@@ -291,6 +291,9 @@ private:
   static char ID;
 };
 
+template <typename ThisErrT, typename ParentErrT>
+char ErrorInfo<ThisErrT, ParentErrT>::ID = 0;
+
 /// Special ErrorInfo subclass representing a list of ErrorInfos.
 /// Instances of this class are constructed by joinError.
 class ErrorList final : public ErrorInfo<ErrorList> {