analyzer: fix name of local in region_model::get_rvalue_1
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 14 Aug 2020 19:32:01 +0000 (15:32 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 18 Aug 2020 00:48:01 +0000 (20:48 -0400)
gcc/analyzer/ChangeLog:
* region-model.cc (region_model::get_rvalue_1): Fix name of local.

gcc/analyzer/region-model.cc

index 305e9648c7913f10052174899a9853714d73e008..c3d9ca7f65000abe49143b16f38e1bd74cc603c9 100644 (file)
@@ -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: