[Chapel Merge] Insert deinit for result of indirect calls

Branch: refs/heads/main
Revision: 8043feee4867b177b6279f2509bbd5be19bc793d
Author: benharsh
Link: Insert deinit for result of indirect calls by benharsh · Pull Request #28901 · chapel-lang/chapel · GitHub
Log Message:
Insert deinit for result of indirect calls (#28901)

This PR simply updates requiresImplicitDestroy to handle indirect
calls.

[reviewed-by @dlongnecke-cray]

Compare: Comparing b3493681487f672ebaae3d665015f46b560f3848...aea9542d1eac0b6c4a88308244210219e0890a89 · chapel-lang/chapel · GitHub

Diff:
M compiler/resolution/postFold.cpp
A test/functions/fcf/pointers/TestDeinit.chpl
A test/functions/fcf/pointers/TestDeinit.good
https://github.com/chapel-lang/chapel/pull/28901.diff