[PATCH] Replace deprecated std::auto_ptr with OwningPtr

Chris Lattner clattner at apple.com
Thu Apr 11 22:41:04 PDT 2013


On Apr 4, 2013, at 10:22 AM, Andy Gibbs <andyg1001 at hotmail.co.uk> wrote:

> Hi,
> 
> Attached here is a patch that simply replaces uses of std::auto_ptr where they appear inside llvm with OwningPtr, which I understand to have the same functionality.  Making the replacement removes the compile warnings due to the use of a deprecated class (in C++11).  Would someone please review this patch for its applicability before I commit.

This looks entirely reasonable to me.  Assuming it passes tests, please commit!

-Chris



More information about the llvm-commits mailing list