diff options
author | Zachary Turner <zturner@google.com> | 2017-03-20 19:56:52 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-20 19:56:52 +0000 |
commit | b7dbd87d5ede0209582a71ba3fd4eebc36c9f877 (patch) | |
tree | a26f35806e443f5a4c632f1e8df3377051a8a866 | |
parent | f5f0864ac2f9b4cb4f60ce060d48c4789236b481 (diff) | |
download | bcm5719-llvm-b7dbd87d5ede0209582a71ba3fd4eebc36c9f877.tar.gz bcm5719-llvm-b7dbd87d5ede0209582a71ba3fd4eebc36c9f877.zip |
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.
llvm-svn: 298294
-rw-r--r-- | llvm/utils/TableGen/GlobalISelEmitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp index ae386ae98e1..596cd3cddb9 100644 --- a/llvm/utils/TableGen/GlobalISelEmitter.cpp +++ b/llvm/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(); |