[PATCH] Replace std::auto_ptr with std::unique_ptr in IR unittests

Xan López xan at igalia.com
Tue Apr 21 11:53:30 PDT 2015


I do not have commit rights, could you or someone else commit the patch for me?

Cheers

On Tue, Apr 21, 2015 at 09:24:31AM -0700, David Blaikie wrote:
> On Tue, Apr 21, 2015 at 3:32 AM, Xan López <xan at igalia.com> wrote:
> 
> > std::auto_ptr is deprecated in GCC 5.x, so this will not compile out
> > of the box. We also seem to be using std::unique_ptr all over the
> > place anyway.
> >
> > The unit test seems to run just fine after the change.
> >
> 
> Looks good - please commit.
> 
> (one day I might get around to having these IR factory functions return by
> unique_ptr to simplify this sort of code... one day)
> 
> 
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >
> >




More information about the llvm-commits mailing list