mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 04:50:24 +08:00
analyzer: implement exploded_path copy ctor
gcc/analyzer/ChangeLog: * engine.cc (exploded_path::exploded_path): New copy-ctor. * exploded-graph.h (exploded_path::operator=): Drop decl.
This commit is contained in:
parent
95a82679f6
commit
ded7355b3d
@ -3352,6 +3352,15 @@ exploded_graph::to_json () const
|
||||
return egraph_obj;
|
||||
}
|
||||
|
||||
exploded_path::exploded_path (const exploded_path &other)
|
||||
: m_edges (other.m_edges.length ())
|
||||
{
|
||||
int i;
|
||||
const exploded_edge *eedge;
|
||||
FOR_EACH_VEC_ELT (other.m_edges, i, eedge)
|
||||
m_edges.quick_push (eedge);
|
||||
}
|
||||
|
||||
/* Look for the last use of SEARCH_STMT within this path.
|
||||
If found write the edge's index to *OUT_IDX and return true, otherwise
|
||||
return false. */
|
||||
|
@ -866,7 +866,6 @@ class exploded_path
|
||||
public:
|
||||
exploded_path () : m_edges () {}
|
||||
exploded_path (const exploded_path &other);
|
||||
exploded_path & operator= (const exploded_path &other);
|
||||
|
||||
unsigned length () const { return m_edges.length (); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user