Fixing broken MSVS builds

llvm-svn: 277191
This commit is contained in:
Piotr Padlewski 2016-07-29 18:28:07 +00:00
parent a010f5cef0
commit 5312b6f10c
1 changed files with 18 additions and 2 deletions

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;