Files
sdk/pkg/vm/lib/transformations
Clement Skau f7db1b0d4c [vm] ffi_use_sites: Adds TreeNode.location null check.
TreeNode.location may return null "if the node is orphaned".
This happens for instance in cases where nodes can't use a
fileOffset due to patch files (see #31579).

This will in turn obscure other errors as the error reporting
code will crash trying to access members on null.

TEST=existing.

Bug: https://github.com/dart-lang/sdk/issues/31579
Change-Id: I85b720ecf2cb09e46cbd1296671be523567d5a83
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202920
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2021-06-09 09:49:31 +00:00
..