[llvm] r264341 - [Support] Add ErrorInfo::ID static member definition.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 14:17:50 PDT 2016
Author: lhames
Date: Thu Mar 24 16:17:50 2016
New Revision: 264341
URL: http://llvm.org/viewvc/llvm-project?rev=264341&view=rev
Log:
[Support] Add ErrorInfo::ID static member definition.
Somehow this got dropped in an earlier patch.
Modified:
llvm/trunk/include/llvm/Support/Error.h
Modified: llvm/trunk/include/llvm/Support/Error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Error.h?rev=264341&r1=264340&r2=264341&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Error.h (original)
+++ llvm/trunk/include/llvm/Support/Error.h Thu Mar 24 16:17:50 2016
@@ -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> {
More information about the llvm-commits
mailing list