Skip to content

Commit 6ffc5fc

Browse files
kazutakahiratakrishna2803
authored andcommitted
[Coroutines] Remove a redundant call to std::unique_ptr<T>::get (NFC) (llvm#151284)
1 parent 2b494df commit 6ffc5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ struct SwitchCoroutineSplitter {
15681568
if (DebugLoc SuspendLoc = S->getDebugLoc()) {
15691569
std::string LabelName =
15701570
("__coro_resume_" + Twine(SuspendIndex)).str();
1571-
DILocation &DILoc = *SuspendLoc.get();
1571+
DILocation &DILoc = *SuspendLoc;
15721572
DILabel *ResumeLabel =
15731573
DBuilder.createLabel(DIS, LabelName, DILoc.getFile(),
15741574
SuspendLoc.getLine(), SuspendLoc.getCol(),

0 commit comments

Comments
 (0)