Skip to content

Commit b1c94a6

Browse files
committed
Revert "Silence an assert"
This reverts commit e51575b.
1 parent a60a3e7 commit b1c94a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ swift::swift_task_create_f(JobFlags flags, AsyncTask *parent,
9494
// This means that we never get rid of this allocation.
9595
size_t amountToAllocate = headerSize + initialContextSize;
9696

97-
// TODO: if this is necessary we need to teach LLVM lowering to request async
98-
// context sizes that are mulitple of that maximum alignment.
99-
// For now disable this assert.
100-
// assert(amountToAllocate % MaximumAlignment == 0);
97+
assert(amountToAllocate % MaximumAlignment == 0);
10198

10299
void *allocation = malloc(amountToAllocate);
103100

0 commit comments

Comments
 (0)