Skip to content

Commit 03564be

Browse files
kazutakahiratasivan-shani
authored andcommitted
[CodeGen] Remove redundant calls to std::unique_ptr<T>::get (NFC) (llvm#141191)
1 parent ab1fad8 commit 03564be

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ void CGDebugInfo::addInstSourceAtomMetadata(llvm::Instruction *I,
134134
// Each instruction can only be attributed to one source atom (a limitation of
135135
// the implementation). If this instruction is already part of a source atom,
136136
// pick the group in which it has highest precedence (lowest rank).
137-
if (DL.get()->getAtomGroup() && DL.get()->getAtomRank() &&
138-
DL.get()->getAtomRank() < Rank) {
139-
Group = DL.get()->getAtomGroup();
140-
Rank = DL.get()->getAtomRank();
137+
if (DL->getAtomGroup() && DL->getAtomRank() && DL->getAtomRank() < Rank) {
138+
Group = DL->getAtomGroup();
139+
Rank = DL->getAtomRank();
141140
}
142141

143142
// Update the function-local watermark so we don't reuse this number for

0 commit comments

Comments
 (0)