Apply clang-tidy fixes for readability-redundant-smartptr-get in GsymReader.cpp (NFC)

This commit is contained in:
Kazu Hirata 2022-03-28 09:18:30 -07:00
parent bd28fc0c9b
commit 9fcd77107f
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ llvm::Expected<GsymReader> GsymReader::copyBuffer(StringRef Bytes) {
llvm::Expected<llvm::gsym::GsymReader> llvm::Expected<llvm::gsym::GsymReader>
GsymReader::create(std::unique_ptr<MemoryBuffer> &MemBuffer) { GsymReader::create(std::unique_ptr<MemoryBuffer> &MemBuffer) {
if (!MemBuffer.get()) if (!MemBuffer)
return createStringError(std::errc::invalid_argument, return createStringError(std::errc::invalid_argument,
"invalid memory buffer"); "invalid memory buffer");
GsymReader GR(std::move(MemBuffer)); GsymReader GR(std::move(MemBuffer));