diff options
author | David Malcolm <dmalcolm@redhat.com> | 2021-02-26 16:35:32 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2021-02-26 16:35:32 -0500 |
commit | ded7355b3d90f35af387fbea27cf59f1e61766eb (patch) | |
tree | d8233670bede8744104c5e9900314cade7d806bb /gcc/analyzer | |
parent | 95a82679f6aeacb32ec54422418f6fee129dadb8 (diff) | |
download | gcc-ded7355b3d90f35af387fbea27cf59f1e61766eb.zip gcc-ded7355b3d90f35af387fbea27cf59f1e61766eb.tar.gz gcc-ded7355b3d90f35af387fbea27cf59f1e61766eb.tar.bz2 |
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.
Diffstat (limited to 'gcc/analyzer')
-rw-r--r-- | gcc/analyzer/engine.cc | 9 | ||||
-rw-r--r-- | gcc/analyzer/exploded-graph.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc index 6077cc8..5339ea3 100644 --- a/gcc/analyzer/engine.cc +++ b/gcc/analyzer/engine.cc @@ -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. */ diff --git a/gcc/analyzer/exploded-graph.h b/gcc/analyzer/exploded-graph.h index 2d4cb9f..871cb78 100644 --- a/gcc/analyzer/exploded-graph.h +++ b/gcc/analyzer/exploded-graph.h @@ -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 (); } |