From 7d6ca05af06c6a94d83793f54f4a62c2fb2dc134 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 20 Mar 2017 19:56:52 +0000 Subject: [PATCH] Explicitly add move constructor/assignment operators. These are needed due to some obscure rules in the standard about how std::vector selects between copy and move constructors, which can cause a conforming implementation to attempt to select the copy constructor of RuleMatcher, which will fail since std::unique_ptr<> isn't copyable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298294 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/GlobalISelEmitter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp index ae386ae98e1..596cd3cddb9 100644 --- a/utils/TableGen/GlobalISelEmitter.cpp +++ b/utils/TableGen/GlobalISelEmitter.cpp @@ -174,6 +174,8 @@ class RuleMatcher { public: RuleMatcher() : Matchers(), Actions(), InsnVariableNames(), NextInsnVarID(0) {} + RuleMatcher(RuleMatcher &&Other) = default; + RuleMatcher &operator=(RuleMatcher &&Other) = default; InstructionMatcher &addInstructionMatcher(); -- 2.11.0