diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-07-19 15:33:40 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-07-19 15:33:40 +0000 |
commit | a6e07e27e77d5e5031f62f515f48c6c3232bd3fa (patch) | |
tree | 6a04f97d06aa1b93f526aca62aaaceb9ccb6f457 /gcc/gimple.h | |
parent | a85492f3cd9c00c8ab42f93c975d66a9d7c6c752 (diff) |
Fix assert in gimple_phi_arg
2017-07-19 Tom de Vries <tom@codesourcery.com>
* gimple.h (gimple_phi_arg): Make assert more strict.
From-SVN: r250351
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 575babe11ef..e19cc1c6bb3 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -4341,7 +4341,7 @@ static inline struct phi_arg_d * gimple_phi_arg (gimple *gs, unsigned index) { gphi *phi_stmt = as_a <gphi *> (gs); - gcc_gimple_checking_assert (index <= phi_stmt->capacity); + gcc_gimple_checking_assert (index < phi_stmt->capacity); return &(phi_stmt->args[index]); } |