projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b563e3
)
Apply clang-tidy fixes for readability-redundant-smartptr-get in MCContext.cpp (NFC)
author
Kazu Hirata
<kazu@google.com>
Mon, 28 Mar 2022 16:18:33 +0000
(09:18 -0700)
committer
Kazu Hirata
<kazu@google.com>
Mon, 28 Mar 2022 16:18:33 +0000
(09:18 -0700)
llvm/lib/MC/MCContext.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCContext.cpp
b/llvm/lib/MC/MCContext.cpp
index
c808a32
..
c6fb7bf
100644
(file)
--- 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;
}
//===----------------------------------------------------------------------===//