We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a6380b + 7dcdd30 commit cebc4d7Copy full SHA for cebc4d7
stdlib/public/Concurrency/Task.cpp
@@ -1800,8 +1800,7 @@ static void swift_task_removeCancellationHandlerImpl(
1800
auto task = swift_task_getCurrent();
1801
assert(task->_private()._status().load(std::memory_order_relaxed).getInnermostRecord() == record &&
1802
"We expect that the popped record will be exactly first as well as that it is of the expected type");
1803
- if (auto poppedRecord =
1804
- popStatusRecordOfType<CancellationNotificationStatusRecord>(task)) {
+ if (popStatusRecordOfType<CancellationNotificationStatusRecord>(task)) {
1805
swift_task_dealloc(record);
1806
}
1807
0 commit comments