Skip to content

Extra sacrificial read in async compound array indexing operations #80147

@333fred

Description

@333fred

See CodeGenAsyncSpillTests.SpillSequences1. It evaluates the array twice before the await call, when only one array evaluation/index is required to ensure that any null reference/index out of bounds exceptions are raised at the right point.

#80093 (comment).

Metadata

Metadata

Assignees

Labels

Area-CompilersCode Gen QualityRoom for improvement in the quality of the compiler's generated code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions