[llvm] 847fbf2 - Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 09:19:23 PDT 2022
Author: Kazu Hirata
Date: 2022-03-28T09:18:33-07:00
New Revision: 847fbf2a387d8e6e780e4b1fdabcc4337fff67e5
URL: https://github.com/llvm/llvm-project/commit/847fbf2a387d8e6e780e4b1fdabcc4337fff67e5
DIFF: https://github.com/llvm/llvm-project/commit/847fbf2a387d8e6e780e4b1fdabcc4337fff67e5.diff
LOG: Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC)
Added:
Modified:
llvm/lib/MC/MCContext.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index c808a321f8cdb..c6fb7bf69a47c 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;
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list