forked from OSchip/llvm-project
Work around MSVC failure from r265273
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/19726 llvm-svn: 265275
This commit is contained in:
parent
0edd3d771a
commit
a997856b3d
|
@ -43,6 +43,16 @@ struct DelayedGlobalValueInit {
|
||||||
struct DelayedBasicBlock {
|
struct DelayedBasicBlock {
|
||||||
BasicBlock *OldBB;
|
BasicBlock *OldBB;
|
||||||
std::unique_ptr<BasicBlock> TempBB;
|
std::unique_ptr<BasicBlock> TempBB;
|
||||||
|
|
||||||
|
// Explicit move for MSVC.
|
||||||
|
DelayedBasicBlock(DelayedBasicBlock &&X)
|
||||||
|
: OldBB(std::move(X.OldBB)), TempBB(std::move(X.TempBB)) {}
|
||||||
|
DelayedBasicBlock &operator=(DelayedBasicBlock &&X) {
|
||||||
|
OldBB = std::move(X.OldBB);
|
||||||
|
TempBB = std::move(X.TempBB);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
DelayedBasicBlock(const BlockAddress &Old)
|
DelayedBasicBlock(const BlockAddress &Old)
|
||||||
: OldBB(Old.getBasicBlock()),
|
: OldBB(Old.getBasicBlock()),
|
||||||
TempBB(BasicBlock::Create(Old.getContext())) {}
|
TempBB(BasicBlock::Create(Old.getContext())) {}
|
||||||
|
|
Loading…
Reference in New Issue