From da7c2773e56c889f4f131b80d4b91f1adbae80a2 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 14 Aug 2020 15:32:01 -0400 Subject: [PATCH] analyzer: fix name of local in region_model::get_rvalue_1 gcc/analyzer/ChangeLog: * region-model.cc (region_model::get_rvalue_1): Fix name of local. --- gcc/analyzer/region-model.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/analyzer/region-model.cc b/gcc/analyzer/region-model.cc index 305e9648c79..c3d9ca7f650 100644 --- a/gcc/analyzer/region-model.cc +++ b/gcc/analyzer/region-model.cc @@ -1118,8 +1118,8 @@ region_model::get_rvalue_1 (path_var pv, region_model_context *ctxt) case RESULT_DECL: case ARRAY_REF: { - const region *element_reg = get_lvalue (pv, ctxt); - return get_store_value (element_reg); + const region *reg = get_lvalue (pv, ctxt); + return get_store_value (reg); } case REALPART_EXPR: -- 2.30.2