From: Kazu Hirata Date: Mon, 28 Mar 2022 16:18:33 +0000 (-0700) Subject: Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC) X-Git-Tag: upstream/15.0.7~12164 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=847fbf2a387d8e6e780e4b1fdabcc4337fff67e5;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC) --- diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index c808a32..c6fb7bf 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -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; } //===----------------------------------------------------------------------===//