mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
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
5c09b89d62
commit
6195acfd6f
@ -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
Block a user