From f41ca0b99dc5f4a7e805de77f1999347d595c40b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 29 Jul 2025 22:21:32 -0700 Subject: [PATCH] [Coroutines] Remove a redundant call to std::unique_ptr::get (NFC) --- llvm/lib/Transforms/Coroutines/CoroSplit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),