[Mlir-commits] [mlir] fb03cd5 - [mlir] Apply ClangTidy finding (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Sun Sep 3 23:45:44 PDT 2023
Author: Adrian Kuegel
Date: 2023-09-04T08:44:49+02:00
New Revision: fb03cd5af1986f6d6933ffa592bd0a38a2fd3ea4
URL: https://github.com/llvm/llvm-project/commit/fb03cd5af1986f6d6933ffa592bd0a38a2fd3ea4
DIFF: https://github.com/llvm/llvm-project/commit/fb03cd5af1986f6d6933ffa592bd0a38a2fd3ea4.diff
LOG: [mlir] Apply ClangTidy finding (NFC)
Remove redundant .get() on a smart pointer.
Added:
Modified:
mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
index 522e6d548722c87..a9e7ce9d42848b5 100644
--- a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
+++ b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
@@ -36,7 +36,7 @@ SmallVector<Type> &LLVMTypeConverter::getCurrentThreadRecursiveStack() {
std::unique_lock<decltype(callStackMutex)> lock(callStackMutex);
auto recursiveStackInserted = conversionCallStack.insert(std::make_pair(
llvm::get_threadid(), std::make_unique<SmallVector<Type>>()));
- return *recursiveStackInserted.first->second.get();
+ return *recursiveStackInserted.first->second;
}
/// Create an LLVMTypeConverter using default LowerToLLVMOptions.
More information about the Mlir-commits
mailing list