diff --git a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp --- a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp @@ -380,8 +380,7 @@ if (opInst.getDialect() == ompDialect) { if (!ompBuilder) { - ompBuilder = - std::move(std::make_unique(*llvmModule)); + ompBuilder = std::make_unique(*llvmModule); ompBuilder->initialize(); }