diff options
author | Kazu Hirata <kazu@google.com> | 2025-05-10 07:27:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-10 07:27:29 -0700 |
commit | 6e4f501b1b67b9d45cbf97b959d43e776983b9c6 (patch) | |
tree | a4f31c34a07fb54f5b4530569e58e216d7f57849 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 53c7062d6c2d834ef68a93d4ea71976ad441585c (diff) | |
download | llvm-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.cpp | 2 |
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; |