mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 04:43:48 +00:00
Fixing broken MSVS builds
llvm-svn: 277191
This commit is contained in:
parent
a010f5cef0
commit
5312b6f10c
@ -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