projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR tree-optimization/93683 - ICE on calloc with unused return value in ao_ref_init_fr...
[gcc.git]
/
gcc
/
tree-ssa-alias.c
diff --git
a/gcc/tree-ssa-alias.c
b/gcc/tree-ssa-alias.c
index c7e6679f990d172dff36ceea6a7e4a4dd7e9b0c8..fd7810506685c27d5c0f6e7c7ef0cfe895f8a179 100644
(file)
--- a/
gcc/tree-ssa-alias.c
+++ b/
gcc/tree-ssa-alias.c
@@
-3265,6
+3265,8
@@
stmt_kills_ref_p (gimple *stmt, ao_ref *ref)
return false;
dest = gimple_call_lhs (stmt);
+ if (!dest)
+ return false;
len = fold_build2 (MULT_EXPR, TREE_TYPE (arg0), arg0, arg1);
}
else