forked from OSchip/llvm-project
Apply clang-tidy fixes for readability-redundant-smartptr-get in GsymReader.cpp (NFC)
This commit is contained in:
parent
bd28fc0c9b
commit
9fcd77107f
|
@ -48,7 +48,7 @@ llvm::Expected<GsymReader> GsymReader::copyBuffer(StringRef Bytes) {
|
|||
|
||||
llvm::Expected<llvm::gsym::GsymReader>
|
||||
GsymReader::create(std::unique_ptr<MemoryBuffer> &MemBuffer) {
|
||||
if (!MemBuffer.get())
|
||||
if (!MemBuffer)
|
||||
return createStringError(std::errc::invalid_argument,
|
||||
"invalid memory buffer");
|
||||
GsymReader GR(std::move(MemBuffer));
|
||||
|
|
Loading…
Reference in New Issue