diff options
author | Richard Biener <rguenther@suse.de> | 2022-07-28 15:07:28 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-07-29 08:29:26 +0200 |
commit | 0c0feae60aa2f1a29d2624399cbcc6b1a52cc07c (patch) | |
tree | c92c28f841df2bd822bc43952acd810e73c1749e | |
parent | b234f5240cafe63c124a8457015aa0447d6db525 (diff) | |
download | gcc-0c0feae60aa2f1a29d2624399cbcc6b1a52cc07c.zip gcc-0c0feae60aa2f1a29d2624399cbcc6b1a52cc07c.tar.gz gcc-0c0feae60aa2f1a29d2624399cbcc6b1a52cc07c.tar.bz2 |
Use CONVERT_EXPR_CODE_P
* gimple-ssa-warn-restrict.cc (builtin_memref::set_base_and_offset):
Use CONVERT_EXPR_CODE_P.
-rw-r--r-- | gcc/gimple-ssa-warn-restrict.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-warn-restrict.cc b/gcc/gimple-ssa-warn-restrict.cc index 6b6097a..b7ed15c 100644 --- a/gcc/gimple-ssa-warn-restrict.cc +++ b/gcc/gimple-ssa-warn-restrict.cc @@ -430,7 +430,7 @@ builtin_memref::set_base_and_offset (tree expr) else if (is_gimple_assign (stmt)) { tree_code code = gimple_assign_rhs_code (stmt); - if (code == NOP_EXPR) + if (CONVERT_EXPR_CODE_P (code)) { tree rhs = gimple_assign_rhs1 (stmt); if (POINTER_TYPE_P (TREE_TYPE (rhs))) |