[codemod][llvm15] LLVM-15 fixes for caffe2/test/cpp/jit/test_module_api.cpp (#89938)

Summary: This fixes issues which block `caffe2/test/cpp/jit/test_module_api.cpp` from compiling with LLVM-15.

Test Plan: Sandcastle

Reviewed By: meyering

Differential Revision: D41603454

Pull Request resolved: https://github.com/pytorch/pytorch/pull/89938
Approved by: https://github.com/soumith
This commit is contained in:
Richard Barnes
2022-12-04 12:50:14 +00:00
committed by PyTorch MergeBot
parent d6c8603b98
commit a580a63448

View File

@ -66,7 +66,7 @@ TEST(ModuleAPITest, MethodRunAsync) {
mtx.lock();
++counter;
mtx.unlock();
at::launch(move(f));
at::launch(std::move(f));
};
auto method = m.get_method("forward");