From: Benjamin Kramer Date: Thu, 5 Mar 2020 17:20:14 +0000 (+0100) Subject: Fix pessimizing move. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2773c692e8cb86d9de0d80c1857d7c469d6aaa2b;p=platform%2Fupstream%2Fllvm.git Fix pessimizing move. NFC. --- diff --git a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp index 6efc90d..d45f05b 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(*llvmModule)); + ompBuilder = std::make_unique(*llvmModule); ompBuilder->initialize(); }