[PyTorch] Fix performance-no-automatic-move clang tidy warnings in matchTypeVariables (#66720)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66720
See the documentation for the warning. https://clang.llvm.org/extra/clang-tidy/checks/performance-no-automatic-move.html
ghstack-source-id: 140922952
Test Plan: CI
Reviewed By: suo
Differential Revision: D31697506
fbshipit-source-id: 26ce6c47d0f3b0c4e48ecc882f6792f1b5a45bac