diff options
Diffstat (limited to 'gcc/ubsan.c')
-rw-r--r-- | gcc/ubsan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ubsan.c b/gcc/ubsan.c index 8818de4..5fe6f3d 100644 --- a/gcc/ubsan.c +++ b/gcc/ubsan.c @@ -1369,7 +1369,7 @@ instrument_bool_enum_load (gimple_stmt_iterator *gsi) &unsignedp, &reversep, &volatilep); tree utype = build_nonstandard_integer_type (modebitsize, 1); - if ((TREE_CODE (base) == VAR_DECL && DECL_HARD_REGISTER (base)) + if ((VAR_P (base) && DECL_HARD_REGISTER (base)) || (bitpos % modebitsize) != 0 || bitsize != modebitsize || GET_MODE_BITSIZE (TYPE_MODE (utype)) != modebitsize |