From 9fcd77107f16277df8ed8b527e80af7c5b4fe47b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 28 Mar 2022 09:18:30 -0700 Subject: [PATCH] Apply clang-tidy fixes for readability-redundant-smartptr-get in GsymReader.cpp (NFC) --- llvm/lib/DebugInfo/GSYM/GsymReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/DebugInfo/GSYM/GsymReader.cpp b/llvm/lib/DebugInfo/GSYM/GsymReader.cpp index 2ad18bf63d5d..0c585cc8d306 100644 --- a/llvm/lib/DebugInfo/GSYM/GsymReader.cpp +++ b/llvm/lib/DebugInfo/GSYM/GsymReader.cpp @@ -48,7 +48,7 @@ llvm::Expected GsymReader::copyBuffer(StringRef Bytes) { llvm::Expected GsymReader::create(std::unique_ptr &MemBuffer) { - if (!MemBuffer.get()) + if (!MemBuffer) return createStringError(std::errc::invalid_argument, "invalid memory buffer"); GsymReader GR(std::move(MemBuffer));