[Mlir-commits] [mlir] 7d6fb14 - [mlir] Apply ClangTidy fix (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Mon Aug 7 06:46:35 PDT 2023
Author: Adrian Kuegel
Date: 2023-08-07T15:45:36+02:00
New Revision: 7d6fb1405756eb8255f0f6f072c4d77350a0f8f9
URL: https://github.com/llvm/llvm-project/commit/7d6fb1405756eb8255f0f6f072c4d77350a0f8f9
DIFF: https://github.com/llvm/llvm-project/commit/7d6fb1405756eb8255f0f6f072c4d77350a0f8f9.diff
LOG: [mlir] Apply ClangTidy fix (NFC)
redundant get() call on smart pointer.
Added:
Modified:
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
index 91e47c4c0e4784..483cbfda8d0e56 100644
--- a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
+++ b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
@@ -926,7 +926,7 @@ class DialectReader : public DialectBytecodeReader {
// bytecode version from the version buffer if it wasn't already processed.
// Return failure if either of those two actions could not be completed.
if (failed(dialectEntry->getValue()->load(*this, getLoc().getContext())) ||
- dialectEntry->getValue()->loadedVersion.get() == nullptr)
+ dialectEntry->getValue()->loadedVersion == nullptr)
return failure();
return dialectEntry->getValue()->loadedVersion.get();
}
More information about the Mlir-commits
mailing list