[llvm] r265465 - Try to appease MSVC after r265456
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 5 14:07:01 PDT 2016
Author: dexonsmith
Date: Tue Apr 5 16:07:01 2016
New Revision: 265465
URL: http://llvm.org/viewvc/llvm-project?rev=265465&view=rev
Log:
Try to appease MSVC after r265456
I can't remember if adding `= default` will make MSVC happy, or if I
have to spell this out. Let's try the cleaner version first.
Modified:
llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp
Modified: llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp?rev=265465&r1=265464&r2=265465&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/ValueMapper.cpp Tue Apr 5 16:07:01 2016
@@ -104,6 +104,10 @@ class MDNodeMapper {
bool HasChangedAddress = false;
unsigned ID = ~0u;
TempMDNode Placeholder;
+
+ Data() = default;
+ Data(Data &&) = default;
+ Data &operator=(Data &&) = default;
};
SmallDenseMap<const Metadata *, Data, 32> Info;
More information about the llvm-commits
mailing list