代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gcc 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From a89b84cd038e02f0cdafecea1cf337d5f8480683 Mon Sep 17 00:00:00 2001
From: dingguangya <dingguangya1@huawei.com>
Date: Fri, 8 Sep 2023 11:55:04 +0800
Subject: [PATCH] [Array-widen-compare] Fix the return value match after update
the get_loop_exit_edges interface
The get_loop_exit_edges interface returns a value type
from vec<edge> -> auto_vec<edge>
diff --git a/gcc/tree-ssa-loop-array-widen-compare.cc b/gcc/tree-ssa-loop-array-widen-compare.cc
index ba6170fa0..d27f91f11 100644
--- a/gcc/tree-ssa-loop-array-widen-compare.cc
+++ b/gcc/tree-ssa-loop-array-widen-compare.cc
@@ -272,12 +272,12 @@ record_origin_loop_exit_info (class loop *loop)
|| origin_loop.cond_stmt1 != NULL || origin_loop.cond_stmt2 != NULL)
return false;
- vec<edge> exit_edges = get_loop_exit_edges (loop);
+ auto_vec<edge> exit_edges = get_loop_exit_edges (loop);
if (exit_edges == vNULL)
return false;
if (exit_edges.length () != 2)
- goto fail;
+ return false;
FOR_EACH_VEC_ELT (exit_edges, i, e)
{
@@ -304,8 +304,6 @@ record_origin_loop_exit_info (class loop *loop)
&& origin_loop.cond_stmt1 != NULL && origin_loop.cond_stmt2 != NULL)
found = true;
-fail:
- exit_edges.release ();
return found;
}
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。