diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2018-02-08 11:16:25 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2018-02-08 11:16:25 +0000 |
commit | eacac712e337690ee21ce37fd06b2fe8b10a58f1 (patch) | |
tree | 3d01b15ec6e89ab66d02404fcd045aced712bbcb /gcc/calls.c | |
parent | 3b263f5af20f4ebb92fad0b8797fe59e3cebf828 (diff) | |
download | gcc-eacac712e337690ee21ce37fd06b2fe8b10a58f1.zip gcc-eacac712e337690ee21ce37fd06b2fe8b10a58f1.tar.gz gcc-eacac712e337690ee21ce37fd06b2fe8b10a58f1.tar.bz2 |
re PR tree-optimization/84224 (ICE in execute, at gimple-ssa-warn-alloca.c:448)
PR tree-optimization/84224
* gimple-ssa-warn-alloca.c (pass_walloca::execute): Remove assert.
* calls.c (gimple_alloca_call_p): Only return TRUE when we have
non-zero arguments.
From-SVN: r257480
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 54fea15..19c95b8 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -730,7 +730,7 @@ gimple_alloca_call_p (const gimple *stmt) switch (DECL_FUNCTION_CODE (fndecl)) { CASE_BUILT_IN_ALLOCA: - return true; + return gimple_call_num_args (stmt) > 0; default: break; } |