[Chapel Merge] Fix clang 14 warning

Branch: refs/heads/main
Revision: e5f35ad
Author: mppf
Link: Fix clang 14 warning by mppf · Pull Request #19879 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19879 from mppf/follow-19765

Fix clang 14 warning

This PR fixes a compilation warning-as-error from clang 14 from code added in PR #19765.

Trivial and not reviewed.

Modified Files:
M compiler/dyno/lib/resolution/resolution-queries.cpp

Compare: https://github.com/chapel-lang/chapel/compare/3fbdb5f6e742...e5f35adc3472