mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 02:56:52 +00:00
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:
parent
4d1557ffac
commit
cc8a2a6d7e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user