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

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

Test Plan: Sandcastle

Reviewed By: meyering

Differential Revision: D41603459

Pull Request resolved: https://github.com/pytorch/pytorch/pull/89936
Approved by: https://github.com/soumith
This commit is contained in:
Richard Barnes 2022-12-01 03:30:27 +00:00 committed by PyTorch MergeBot
parent 6317311e61
commit cc01614186

View File

@ -59,7 +59,7 @@ TEST(GraphExecutorTest, runAsync_executor) {
mtx.lock();
++asyncCounter;
mtx.unlock();
at::launch(move(f));
at::launch(std::move(f));
};
std::vector<IValue> stack;
// NOLINTNEXTLINE(modernize-use-emplace)