[llvm] r277191 - Fixing broken MSVS builds

Piotr Padlewski via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 11:28:07 PDT 2016


Author: prazek
Date: Fri Jul 29 13:28:07 2016
New Revision: 277191

URL: http://llvm.org/viewvc/llvm-project?rev=277191&view=rev
Log:
Fixing broken MSVS builds

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h?rev=277191&r1=277190&r2=277191&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h Fri Jul 29 13:28:07 2016
@@ -48,8 +48,24 @@ private:
   struct InlineGraphNode {
     // Default-constructible and movable.
     InlineGraphNode() = default;
-    InlineGraphNode(InlineGraphNode &&) = default;
-    InlineGraphNode &operator=(InlineGraphNode &&) = default;
+    // FIXME: make them default ctors when we won't support ancient compilers
+    // like MSVS-2013.
+    InlineGraphNode(InlineGraphNode &&Other)
+      : InlinedCallees(std::move(Other.InlinedCallees)),
+      NumberOfInlines(Other.NumberOfInlines),
+      NumberOfRealInlines(Other.NumberOfRealInlines),
+      Imported(Other.Imported),
+      Visited(Other.Visited) {}
+
+    InlineGraphNode &operator=(InlineGraphNode &&Other) {
+      InlinedCallees = std::move(Other.InlinedCallees);
+      NumberOfInlines = Other.NumberOfInlines;
+      NumberOfRealInlines = Other.NumberOfRealInlines;
+      Imported = Other.Imported;
+      Visited = Other.Visited;
+      return *this;
+    }
+
     InlineGraphNode(const InlineGraphNode &) = delete;
     InlineGraphNode &operator=(const InlineGraphNode &) = delete;
 




More information about the llvm-commits mailing list