mirror of
https://github.com/Z3Prover/z3
synced 2026-03-09 23:00:30 +00:00
Remove copies (#8583)
This commit is contained in:
parent
0da28c6d19
commit
836a76c78a
14 changed files with 38 additions and 51 deletions
|
|
@ -123,7 +123,7 @@ namespace polymorphism {
|
|||
expr_ref e_inst = new_sub(e);
|
||||
if (!m_from_instantiation.contains(e_inst)) {
|
||||
collect_instantiations(e_inst);
|
||||
auto* new_sub1 = alloc(substitution, new_sub);
|
||||
auto* new_sub1 = alloc(substitution, std::move(new_sub));
|
||||
instances.push_back(instantiation(e, e_inst, new_sub1));
|
||||
new_substs.insert(new_sub1);
|
||||
m_from_instantiation.insert(e_inst);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue