summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Support/Error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h
index ed3d4077a65..14d7ab010b4 100644
--- a/llvm/include/llvm/Support/Error.h
+++ b/llvm/include/llvm/Support/Error.h
@@ -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> {
OpenPOWER on IntegriCloud