Adding a move constructor (due to CopyOnWriteVector requiring move-only semantics) to appease MSVC.

llvm-svn: 206374
This commit is contained in:
Aaron Ballman 2014-04-16 11:09:33 +00:00
parent 26eaef72d0
commit 49b568ead8
1 changed files with 6 additions and 0 deletions

View File

@ -265,6 +265,12 @@ private:
bool HasBackEdges;
unsigned SuccessorsToProcess;
BlockInfo() : HasBackEdges(false), SuccessorsToProcess(0) {}
BlockInfo(BlockInfo &&RHS)
: ExitMap(std::move(RHS.ExitMap)), HasBackEdges(RHS.HasBackEdges),
SuccessorsToProcess(RHS.SuccessorsToProcess) {}
private:
BlockInfo(const BlockInfo &) LLVM_DELETED_FUNCTION;
};
// We implement the CFGVisitor API