mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
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
This commit is contained in:
parent
2a9dc99f1c
commit
f2bd7c12ec
@ -174,6 +174,8 @@ class RuleMatcher {
|
||||
public:
|
||||
RuleMatcher()
|
||||
: Matchers(), Actions(), InsnVariableNames(), NextInsnVarID(0) {}
|
||||
RuleMatcher(RuleMatcher &&Other) = default;
|
||||
RuleMatcher &operator=(RuleMatcher &&Other) = default;
|
||||
|
||||
InstructionMatcher &addInstructionMatcher();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user