Fixing broken MSVS builds

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Piotr Padlewski 2016-07-29 18:28:07 +00:00
parent 4d1557ffac
commit cc8a2a6d7e

View File

@ -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;