From: David Malcolm Date: Wed, 27 Jul 2022 21:38:55 +0000 (-0400) Subject: analyzer: fix stray get_element decls X-Git-Tag: releases/gcc-12.2.0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7455e982f09832418fd98b7b0c2152eb7e3c1765;p=thirdparty%2Fgcc.git analyzer: fix stray get_element decls (cherry picked from r13-1847-g0460ba622e833d) These were copy&paste errors. gcc/analyzer/ChangeLog: * region.h (code_region::get_element): Remove stray decl. (function_region::get_element): Likewise. Signed-off-by: David Malcolm --- diff --git a/gcc/analyzer/region.h b/gcc/analyzer/region.h index 5150be76d0ba..b5855c5b2f93 100644 --- a/gcc/analyzer/region.h +++ b/gcc/analyzer/region.h @@ -396,10 +396,6 @@ public: /* region vfuncs. */ void dump_to_pp (pretty_printer *pp, bool simple) const FINAL OVERRIDE; enum region_kind get_kind () const FINAL OVERRIDE { return RK_CODE; } - - const region *get_element (region_model *model, - const svalue *index, - region_model_context *ctxt); }; } // namespace ana @@ -435,10 +431,6 @@ public: tree get_fndecl () const { return m_fndecl; } - region *get_element (region_model *model, - const svalue *index_sid, - region_model_context *ctxt); - private: tree m_fndecl; };