[llvm] 8f9b018 - [Coroutines] Remove a redundant call to std::unique_ptr<T>::get (NFC) (#151284)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 07:30:41 PDT 2025


Author: Kazu Hirata
Date: 2025-07-30T07:30:37-07:00
New Revision: 8f9b01884d78553292e7e8fe87a58fbe419643e1

URL: https://github.com/llvm/llvm-project/commit/8f9b01884d78553292e7e8fe87a58fbe419643e1
DIFF: https://github.com/llvm/llvm-project/commit/8f9b01884d78553292e7e8fe87a58fbe419643e1.diff

LOG: [Coroutines] Remove a redundant call to std::unique_ptr<T>::get (NFC) (#151284)

Added: 
    

Modified: 
    llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index 64b33e46404f0..ab906f9fa03a1 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -1568,7 +1568,7 @@ struct SwitchCoroutineSplitter {
         if (DebugLoc SuspendLoc = S->getDebugLoc()) {
           std::string LabelName =
               ("__coro_resume_" + Twine(SuspendIndex)).str();
-          DILocation &DILoc = *SuspendLoc.get();
+          DILocation &DILoc = *SuspendLoc;
           DILabel *ResumeLabel =
               DBuilder.createLabel(DIS, LabelName, DILoc.getFile(),
                                    SuspendLoc.getLine(), SuspendLoc.getCol(),


        


More information about the llvm-commits mailing list