forked from OSchip/llvm-project
Make appendCallNB lambda mutable
Lambdas are by deafult const so that they produce the same output every time they are run. This lambda needs to set the value on a captured promise which is a mutating operation, so it must be mutable. llvm-svn: 372336
This commit is contained in:
parent
7decdbf2db
commit
7cb60fb00f
|
@ -1417,7 +1417,7 @@ public:
|
|||
auto FutureResult = Promise.get_future();
|
||||
|
||||
if (auto Err = this->template appendCallAsync<Func>(
|
||||
[Promise = std::move(Promise)](ErrorReturn RetOrErr) {
|
||||
[Promise = std::move(Promise)](ErrorReturn RetOrErr) mutable {
|
||||
Promise.set_value(std::move(RetOrErr));
|
||||
return Error::success();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue