From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2209) id 7D877385BAC8; Wed, 27 Jul 2022 21:56:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D877385BAC8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: David Malcolm To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-8639] analyzer: fix stray get_element decls X-Act-Checkin: gcc X-Git-Author: David Malcolm X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 71a4f739c218746df70612eeb844024d1fe206bb X-Git-Newrev: 7455e982f09832418fd98b7b0c2152eb7e3c1765 Message-Id: <20220727215604.7D877385BAC8@sourceware.org> Date: Wed, 27 Jul 2022 21:56:04 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2022 21:56:04 -0000 https://gcc.gnu.org/g:7455e982f09832418fd98b7b0c2152eb7e3c1765 commit r12-8639-g7455e982f09832418fd98b7b0c2152eb7e3c1765 Author: David Malcolm Date: Wed Jul 27 17:38:55 2022 -0400 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: --- gcc/analyzer/region.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gcc/analyzer/region.h b/gcc/analyzer/region.h index 5150be76d0b..b5855c5b2f9 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; };