From 8500538bd3d1ee6c558d2291b18ff98acd37ffc5 Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sun, 16 Jul 2017 17:01:40 +0000 Subject: [PATCH] [Dominators] Workaround explicit instantiation bug. Some platforms have problems with emmiting constructors when class templates get explicitly instantiated. This patch fixes the bug reported in D35315 by replacing `= default` with an empty constructor body. llvm-svn: 308140 --- include/llvm/Support/GenericDomTree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Support/GenericDomTree.h b/include/llvm/Support/GenericDomTree.h index df06ac170fe..706320fed9a 100644 --- a/include/llvm/Support/GenericDomTree.h +++ b/include/llvm/Support/GenericDomTree.h @@ -230,7 +230,7 @@ class DominatorTreeBase { using NodePtr = NodeT *; static constexpr bool IsPostDominator = IsPostDom; - DominatorTreeBase() = default; + DominatorTreeBase() {} DominatorTreeBase(DominatorTreeBase &&Arg) : Roots(std::move(Arg.Roots)),