[Mlir-commits] [mlir] 18eb681 - Fix clang-tidy readability-redundant-smartptr-get in MLIR ModuleTranslation.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sat Jan 8 12:07:45 PST 2022


Author: Mehdi Amini
Date: 2022-01-08T20:07:11Z
New Revision: 18eb6818210d46af9d108a5358b6bc6f3deb1f5d

URL: https://github.com/llvm/llvm-project/commit/18eb6818210d46af9d108a5358b6bc6f3deb1f5d
DIFF: https://github.com/llvm/llvm-project/commit/18eb6818210d46af9d108a5358b6bc6f3deb1f5d.diff

LOG: Fix clang-tidy readability-redundant-smartptr-get in MLIR ModuleTranslation.cpp (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 1ca3fb2fc6649..c5bcf8db55a68 100644
--- a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
@@ -629,7 +629,7 @@ LogicalResult ModuleTranslation::convertGlobals() {
       llvm::Function *f = lookupFunction(
           std::get<0>(symbolAndPriority).cast<FlatSymbolRefAttr>().getValue());
       appendGlobalFn(
-          *llvmModule.get(), f,
+          *llvmModule, f,
           std::get<1>(symbolAndPriority).cast<IntegerAttr>().getInt(),
           /*Data=*/nullptr);
     }


        


More information about the Mlir-commits mailing list