diff options
author | Martin Liska <mliska@suse.cz> | 2018-04-03 15:43:22 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-04-03 13:43:22 +0000 |
commit | a3dadf610789784e5fe7e80e3212daa172e1162c (patch) | |
tree | fe3110c9a5c54029e26a9236de5a86e7c9d3d7db /gcc/rtl.h | |
parent | b93f25ad50bd186cc9a9e7951a9d8caf0f4184ee (diff) | |
download | gcc-a3dadf610789784e5fe7e80e3212daa172e1162c.zip gcc-a3dadf610789784e5fe7e80e3212daa172e1162c.tar.gz gcc-a3dadf610789784e5fe7e80e3212daa172e1162c.tar.bz2 |
Remove UBSAN in dwarf2out.c (PR tree-optimization/82491).
2018-04-03 Martin Liska <mliska@suse.cz>
PR tree-optimization/82491
* rtl.h (strip_offset_and_add): Replace += suboffset with
poly_uint64 () + suboffset.
From-SVN: r259030
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4339,7 +4339,7 @@ strip_offset_and_add (rtx x, poly_int64_pod *offset) { poly_int64 suboffset; x = strip_offset (x, &suboffset); - *offset += suboffset; + *offset = poly_uint64 (*offset) + suboffset; } return x; } |