[CP - stable channel] [vm/aot] Visit TypeParameterType.promotedBound in tree shaker - 1777f769abc9ea7f2a7e2c70c3e1635a838bc199 #47914
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
merge-to-beta
merge-to-stable
commit(s) to merge: 1777f76
merge instructions: clean merge
What is the issue: AOT compilation fails with error "Invalid argument(s): Missing canonical name for Reference" in a flutter app
What is the fix: If tree shaker doesn't visit TypeParameterType.promotedBound which contains the only reference to a particular class it may remove that class, leaving a dangling reference from promotedBound. After that kernel AST serialization would crash with "Missing canonical name for Reference" error.
Why cherrypick: This error was encountered by a Flutter app developer when building their app for release and it is possible other developers would also encounter this issue
Risk: Low (has test case)
Link to original issue(s): #47878
/cc @mit-mit @whesse @athomas @vsmenon @devoncarew
The text was updated successfully, but these errors were encountered: