[Chapel Merge] Fix some --verify errors with --no-local

Branch: refs/heads/main
Revision: 349f0bc
Author: benharsh
Link: Fix some --verify errors with --no-local by benharsh · Pull Request #20372 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20372 from benharsh/fix-wide-ref-verify

Fix some --verify errors with --no-local

The following tests were failing with --no-local --verify with an error complaining about the existence of _wide__ref types:

  • deprecated/URL/depReaderWriter
  • library/packages/canCompileNoLink/Curltest
  • library/packages/canCompileNoLink/HDFStest

The solution is to not use the _ref type when creating wide temp for virtual method call.

[reviewed-by @vasslitvinov]

Modified Files:
M compiler/passes/insertWideReferences.cpp

Compare: https://github.com/chapel-lang/chapel/compare/eb13ad710066...349f0bc0bbc0