Skip to content

Commit 6e4f501

Browse files
[Utils] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#139352)
1 parent 53c7062 commit 6e4f501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using namespace llvm;
4444
STATISTIC(RemappedAtomMax, "Highest global NextAtomGroup (after mapping)");
4545

4646
void llvm::mapAtomInstance(const DebugLoc &DL, ValueToValueMapTy &VMap) {
47-
auto CurGroup = DL.get()->getAtomGroup();
47+
auto CurGroup = DL->getAtomGroup();
4848
if (!CurGroup)
4949
return;
5050

llvm/lib/Transforms/Utils/InlineFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ static void fixupLineNumbers(Function *Fn, Function::iterator FI,
18351835
// not-nodebug instructions. FIXME: Possibly worth transferring/generating
18361836
// an atom for the returned value, otherwise we miss stepping on inlined
18371837
// nodebug functions (which is different to existing behaviour).
1838-
DebugLoc TheCallDL = TheCall->getDebugLoc().get()->getWithoutAtom();
1838+
DebugLoc TheCallDL = TheCall->getDebugLoc()->getWithoutAtom();
18391839

18401840
auto &Ctx = Fn->getContext();
18411841
DILocation *InlinedAtNode = TheCallDL;

0 commit comments

Comments
 (0)