diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-03-04 02:07:51 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-03-04 02:07:51 +0000 |
| commit | f22e370733f0537d367c9c32d3115f50a35eb63b (patch) | |
| tree | 75277e3c521b7a989ca96343c2cccfac0b33a996 /llvm/lib | |
| parent | bd68504bf65fc49b2cb3311db47ef674494f1d64 (diff) | |
| download | bcm5719-llvm-f22e370733f0537d367c9c32d3115f50a35eb63b.tar.gz bcm5719-llvm-f22e370733f0537d367c9c32d3115f50a35eb63b.zip | |
Workaround MSVC not providing implicit move members
llvm-svn: 231204
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index 3675d958323..da3d02f9e5e 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -65,6 +65,14 @@ namespace llvm { std::unique_ptr<Constant*[]> 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) |

