Remove ExplicitCompletionHandlerIndex flag

Assuming that we don't typecheck a deserialized module, we don't
actually need the ExplicitCompletionHandlerIndex. We used this flag to
determine whether we could trust the number stored in the handler index
or just take the last parameter of the function we're attached to.

Since we only typecheck it before serialization, we can safely check
that the completion handler location is valid before choosing whether we
should trust it or not.
This commit is contained in:
Evan Wilde
2021-03-10 17:32:57 -08:00
parent 9f412616d8
commit eaab395973
6 changed files with 6 additions and 18 deletions

View File

@@ -1926,7 +1926,6 @@ namespace decls_block {
using CompletionHandlerAsyncDeclAttrLayout = BCRecordLayout<
CompletionHandlerAsync_DECL_ATTR,
BCFixed<1>, // True if explicit handler index
BCVBR<5>, // Completion handler index
DeclIDField // Mapped async function decl
>;