gcc/0088-Backport-fix-typo-causing-ICE.patch
xiongzhou4 1cf8937271 [Sync] Sync patch from openeuler/gcc.
(cherry picked from commit 312a836cd881325790aa341a08161bb5b7bfdd2a)
2023-01-06 10:51:31 +08:00

26 lines
789 B
Diff

From d631be52d401d834261f86113b3a738014540b6c Mon Sep 17 00:00:00 2001
From: xiongzhou4 <xiongzhou4@huawei.com>
Date: Fri, 30 Dec 2022 20:15:11 +0800
Subject: [PATCH] Replace *vcond with vcond as we check for NULL pointer.
---
gcc/tree-ssa-reassoc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c
index 62e7c8dca..1ad43dba1 100644
--- a/gcc/tree-ssa-reassoc.c
+++ b/gcc/tree-ssa-reassoc.c
@@ -3839,7 +3839,7 @@ ovce_extract_ops (tree var, gassign **rets, bool *reti, tree *type,
gassign *stmt = dyn_cast <gassign *> (SSA_NAME_DEF_STMT (var));
if (stmt == NULL)
return ERROR_MARK;
- if (*vcond)
+ if (vcond)
*vcond = stmt;
/* ??? If we start creating more COND_EXPR, we could perform
--
2.33.0