forked from OSchip/llvm-project
Fix clang-cl self-host with MSVC 2013 STL std::bind implementation
llvm-svn: 255678
This commit is contained in:
parent
d7045faa10
commit
b6dfee2d73
|
@ -70,7 +70,12 @@ public:
|
|||
#ifndef _MSC_VER
|
||||
return asyncImpl(std::move(Task));
|
||||
#else
|
||||
return asyncImpl([Task] (VoidTy) -> VoidTy { Task(); return VoidTy(); });
|
||||
// This lambda has to be marked mutable because MSVC 2013's std::bind call
|
||||
// operator isn't const qualified.
|
||||
return asyncImpl([Task](VoidTy) mutable -> VoidTy {
|
||||
Task();
|
||||
return VoidTy();
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue