From: David Blaikie Date: Wed, 4 Mar 2015 02:07:51 +0000 (+0000) Subject: Workaround MSVC not providing implicit move members X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6d031a308f3f073099eb498a203ddaac60f2c507;p=oota-llvm.git Workaround MSVC not providing implicit move members git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231204 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.h b/lib/AsmParser/LLParser.h index 3675d958323..da3d02f9e5e 100644 --- a/lib/AsmParser/LLParser.h +++ b/lib/AsmParser/LLParser.h @@ -65,6 +65,14 @@ namespace llvm { std::unique_ptr ConstantStructElts; ValID() : Kind(t_LocalID), APFloatVal(0.0) {} + // Workaround for MSVC not synthesizing implicit move members. + ValID(ValID &&RHS) + : Kind(std::move(RHS.Kind)), Loc(std::move(RHS.Loc)), + UIntVal(std::move(RHS.UIntVal)), StrVal(std::move(RHS.StrVal)), + StrVal2(std::move(RHS.StrVal2)), APSIntVal(std::move(RHS.APSIntVal)), + APFloatVal(std::move(RHS.APFloatVal)), + ConstantVal(std::move(RHS.ConstantVal)), + ConstantStructElts(std::move(RHS.ConstantStructElts)) {} bool operator<(const ValID &RHS) const { if (Kind == t_LocalID || Kind == t_GlobalID)