Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 28 Mar 2022 16:18:33 +0000 (09:18 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 28 Mar 2022 16:18:33 +0000 (09:18 -0700)
llvm/lib/MC/MCContext.cpp

index c808a32..c6fb7bf 100644 (file)
@@ -917,9 +917,9 @@ void MCContext::finalizeDwarfSections(MCStreamer &MCOS) {
 }
 
 CodeViewContext &MCContext::getCVContext() {
-  if (!CVContext.get())
+  if (!CVContext)
     CVContext.reset(new CodeViewContext);
-  return *CVContext.get();
+  return *CVContext;
 }
 
 //===----------------------------------------------------------------------===//