aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-10 07:27:29 -0700
committerGitHub <noreply@github.com>2025-05-10 07:27:29 -0700
commit6e4f501b1b67b9d45cbf97b959d43e776983b9c6 (patch)
treea4f31c34a07fb54f5b4530569e58e216d7f57849 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent53c7062d6c2d834ef68a93d4ea71976ad441585c (diff)
downloadllvm-6e4f501b1b67b9d45cbf97b959d43e776983b9c6.zip
llvm-6e4f501b1b67b9d45cbf97b959d43e776983b9c6.tar.gz
llvm-6e4f501b1b67b9d45cbf97b959d43e776983b9c6.tar.bz2
[Utils] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#139352)
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 2412146..b4aae88 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1835,7 +1835,7 @@ static void fixupLineNumbers(Function *Fn, Function::iterator FI,
// not-nodebug instructions. FIXME: Possibly worth transferring/generating
// an atom for the returned value, otherwise we miss stepping on inlined
// nodebug functions (which is different to existing behaviour).
- DebugLoc TheCallDL = TheCall->getDebugLoc().get()->getWithoutAtom();
+ DebugLoc TheCallDL = TheCall->getDebugLoc()->getWithoutAtom();
auto &Ctx = Fn->getContext();
DILocation *InlinedAtNode = TheCallDL;