diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-07-19 15:33:50 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-07-19 15:33:50 +0000 |
commit | 8f860bca0072af4f012e6640f1befa9bb02f4ed5 (patch) | |
tree | b34bd16e2b32c43736b35d5b68b211faf1430ba0 /gcc/gimple.h | |
parent | a6e07e27e77d5e5031f62f515f48c6c3232bd3fa (diff) | |
download | gcc-8f860bca0072af4f012e6640f1befa9bb02f4ed5.zip gcc-8f860bca0072af4f012e6640f1befa9bb02f4ed5.tar.gz gcc-8f860bca0072af4f012e6640f1befa9bb02f4ed5.tar.bz2 |
Fix assert in gimple_phi_set_arg
2017-07-19 Tom de Vries <tom@codesourcery.com>
* gimple.h (gimple_phi_set_arg): Make assert more strict.
From-SVN: r250352
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 e19cc1c..aba7167 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -4351,7 +4351,7 @@ gimple_phi_arg (gimple *gs, unsigned index) static inline void gimple_phi_set_arg (gphi *phi, unsigned index, struct phi_arg_d * phiarg) { - gcc_gimple_checking_assert (index <= phi->nargs); + gcc_gimple_checking_assert (index < phi->nargs); phi->args[index] = *phiarg; } |