From 847fbf2a387d8e6e780e4b1fdabcc4337fff67e5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 28 Mar 2022 09:18:33 -0700 Subject: [PATCH] Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC) --- llvm/lib/MC/MCContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } //===----------------------------------------------------------------------===// -- 2.7.4