[CP] [vm/ffi] Fix constant Finalizable
s
#49411
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
library-ffi
Commit(s) to merge
d3ea8bf
Target
stable
Issue Description
crashes the compiler in
dart compile exe
.What is the fix
The VM relied on only seeing expression types emitted by the transformer implementing finalizable in the CFE. However, further transforms could change that expression, in this instance to a constant. The fix is that the VM just accepts all expressions types.
Why cherry-pick
At least one user is running into this in production (cc @blaugold).
Finalizable
parameter #49402 (comment)Risk
low
Issue link(s)
Finalizable
parameter #49402Extra Info
No response
The text was updated successfully, but these errors were encountered: