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

David Blaikie dblaikie at gmail.com
Tue Apr 21 09:24:31 PDT 2015

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150421/6d2dcd97/attachment.html>

More information about the llvm-commits mailing list