Re: [PATCH 1/2] analyzer: return a concrete offset for cast_regions

2022-09-02 Thread David Malcolm via Gcc-patches
On Fri, 2022-09-02 at 16:08 +0200, Tim Lange wrote: > This patch fixes a bug where maybe_fold_sub_svalue did not fold the > access of a single char from a string to a char when the offset was > zero > because get_relative_concrete_offset did return false for > cast_regions. > > Regrtested on

[PATCH 1/2] analyzer: return a concrete offset for cast_regions

2022-09-02 Thread Tim Lange
This patch fixes a bug where maybe_fold_sub_svalue did not fold the access of a single char from a string to a char when the offset was zero because get_relative_concrete_offset did return false for cast_regions. Regrtested on Linux x86_64. 2022-09-02 Tim Lange gcc/analyzer/ChangeLog: