diff options
author | Kazu Hirata <kazu@google.com> | 2022-03-20 23:11:06 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-03-20 23:11:06 -0700 |
commit | 1eada2adda8f6e31a5290dd17706cf617a483975 (patch) | |
tree | 97d4c066d6e71f453de5ae488d3671da172b68b2 /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | |
parent | 4b28980772402cab998e2c42e4876d6decb48583 (diff) | |
download | llvm-1eada2adda8f6e31a5290dd17706cf617a483975.zip llvm-1eada2adda8f6e31a5290dd17706cf617a483975.tar.gz llvm-1eada2adda8f6e31a5290dd17706cf617a483975.tar.bz2 |
[CodeGen] Apply clang-tidy fixes for readability-redundant-smartptr-get (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp index a67d934..24c00b8 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp @@ -914,14 +914,14 @@ private: std::unique_ptr<VarLocSet> &VLS = Locs[MBB]; if (!VLS) VLS = std::make_unique<VarLocSet>(Alloc); - return *VLS.get(); + return *VLS; } const VarLocSet &getVarLocsInMBB(const MachineBasicBlock *MBB, const VarLocInMBB &Locs) const { auto It = Locs.find(MBB); assert(It != Locs.end() && "MBB not in map"); - return *It->second.get(); + return *It->second; } /// Tests whether this instruction is a spill to a stack location. @@ -1940,7 +1940,7 @@ bool VarLocBasedLDV::join( // Just copy over the Out locs to incoming locs for the first visited // predecessor, and for all other predecessors join the Out locs. - VarLocSet &OutLocVLS = *OL->second.get(); + VarLocSet &OutLocVLS = *OL->second; if (!NumVisited) InLocsT = OutLocVLS; else @@ -1999,7 +1999,7 @@ void VarLocBasedLDV::flushPendingLocs(VarLocInMBB &PendingInLocs, for (auto &Iter : PendingInLocs) { // Map is keyed on a constant pointer, unwrap it so we can insert insts. auto &MBB = const_cast<MachineBasicBlock &>(*Iter.first); - VarLocSet &Pending = *Iter.second.get(); + VarLocSet &Pending = *Iter.second; SmallVector<VarLoc, 32> VarLocs; collectAllVarLocs(VarLocs, Pending, VarLocIDs); |