[llvm] r212682 - Remove move assignment operator to appease older GCCs.

David Blaikie dblaikie at gmail.com
Wed Jul 9 22:12:05 PDT 2014


On Wed, Jul 9, 2014 at 9:39 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> Author: pcc
> Date: Wed Jul  9 23:39:40 2014
> New Revision: 212682
>
> URL: http://llvm.org/viewvc/llvm-project?rev=212682&view=rev
> Log:
> Remove move assignment operator to appease older GCCs.

What was the problem? What's unsupported here?

>
> Modified:
>     llvm/trunk/lib/Support/SpecialCaseList.cpp
>
> Modified: llvm/trunk/lib/Support/SpecialCaseList.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/SpecialCaseList.cpp?rev=212682&r1=212681&r2=212682&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Support/SpecialCaseList.cpp (original)
> +++ llvm/trunk/lib/Support/SpecialCaseList.cpp Wed Jul  9 23:39:40 2014
> @@ -37,11 +37,6 @@ struct SpecialCaseList::Entry {
>    Entry() {}
>    Entry(Entry &&Other)
>        : Strings(std::move(Other.Strings)), RegEx(std::move(Other.RegEx)) {}
> -  Entry &operator=(Entry &&Other) {
> -    Strings = std::move(Other.Strings);
> -    RegEx = std::move(Other.RegEx);
> -    return *this;
> -  }
>
>    StringSet<> Strings;
>    std::unique_ptr<Regex> RegEx;
>
>
> _______________________________________________
> 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