mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-20 02:47:11 +03:00
Fix 'unqualified call to std::move' errors in clang 15+
This commit is contained in:
committed by
Konstantinos Margaritis
parent
54445cba3c
commit
3ed0c593f4
@@ -1733,7 +1733,7 @@ void clearProperInEdges(NGHolder &g, const NFAVertex sink) {
|
||||
namespace {
|
||||
struct SomRevNfa {
|
||||
SomRevNfa(NFAVertex s, ReportID r, bytecode_ptr<NFA> n)
|
||||
: sink(s), report(r), nfa(move(n)) {}
|
||||
: sink(s), report(r), nfa(std::move(n)) {}
|
||||
NFAVertex sink;
|
||||
ReportID report;
|
||||
bytecode_ptr<NFA> nfa;
|
||||
@@ -1799,7 +1799,7 @@ bool makeSomRevNfa(vector<SomRevNfa> &som_nfas, const NGHolder &g,
|
||||
return false;
|
||||
}
|
||||
|
||||
som_nfas.emplace_back(sink, report, move(nfa));
|
||||
som_nfas.emplace_back(sink, report, std::move(nfa));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1839,7 +1839,7 @@ bool doSomRevNfa(NG &ng, NGHolder &g, const CompileContext &cc) {
|
||||
assert(som_nfa.nfa);
|
||||
|
||||
// Transfer ownership of the NFA to the SOM slot manager.
|
||||
u32 comp_id = ng.ssm.addRevNfa(move(som_nfa.nfa), maxWidth);
|
||||
u32 comp_id = ng.ssm.addRevNfa(std::move(som_nfa.nfa), maxWidth);
|
||||
|
||||
// Replace this report on 'g' with a SOM_REV_NFA report pointing at our
|
||||
// new component.
|
||||
@@ -1872,7 +1872,7 @@ u32 doSomRevNfaPrefix(NG &ng, const ExpressionInfo &expr, NGHolder &g,
|
||||
max(cc.grey.maxHistoryAvailable, ng.maxSomRevHistoryAvailable));
|
||||
}
|
||||
|
||||
return ng.ssm.addRevNfa(move(nfa), maxWidth);
|
||||
return ng.ssm.addRevNfa(std::move(nfa), maxWidth);
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user