[Mlir-commits] [mlir] 2773c69 - Fix pessimizing move. NFC.
Benjamin Kramer
llvmlistbot at llvm.org
Thu Mar 5 09:21:47 PST 2020
Author: Benjamin Kramer
Date: 2020-03-05T18:20:14+01:00
New Revision: 2773c692e8cb86d9de0d80c1857d7c469d6aaa2b
URL: https://github.com/llvm/llvm-project/commit/2773c692e8cb86d9de0d80c1857d7c469d6aaa2b
DIFF: https://github.com/llvm/llvm-project/commit/2773c692e8cb86d9de0d80c1857d7c469d6aaa2b.diff
LOG: Fix pessimizing move. NFC.
Added:
Modified:
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
index 6efc90daf330..d45f05b6d196 100644
--- a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
@@ -380,8 +380,7 @@ LogicalResult ModuleTranslation::convertOperation(Operation &opInst,
if (opInst.getDialect() == ompDialect) {
if (!ompBuilder) {
- ompBuilder =
- std::move(std::make_unique<llvm::OpenMPIRBuilder>(*llvmModule));
+ ompBuilder = std::make_unique<llvm::OpenMPIRBuilder>(*llvmModule);
ompBuilder->initialize();
}
More information about the Mlir-commits
mailing list