Skip to content

Commit

Permalink
Fixing broken MSVS builds
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277191 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
prazek committed Jul 29, 2016
1 parent 4d1557f commit cc8a2a6
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,24 @@ class ImportedFunctionsInliningStatistics {
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;

Expand Down

0 comments on commit cc8a2a6

Please sign in to comment.