On Wed, Jul 13, 2011 at 10:37 PM, Andrew Pinski <pins...@gmail.com> wrote: > Hi, > The problem here is that the type of the POINTER_PLUS_EXPR is > incorrect and also the non folded version leaks to the IR. This patch > fixes those two problems and fixes the ICE. > > OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.
Ok. Thanks, Richard. > Thanks, > Andrew Pinski > > 2011-07-13 Andrew Pinski <pins...@gmail.com> > > PR tree-opt/49309 > * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>): > Use fold_build2_loc instead of build2. > Use the correct type for the new tree. > > 2011-07-13 Andrew Pinski <pins...@gmail.com> > > PR tree-opt/49309 > * g++.dg/torture/pr49309.C: New testcase. >