Skip to content

Commit 3b64a8d

Browse files
Merge pull request #7690 from felipepiovezan/fpiovezan/src0
[cherry-pick][Coroutines][NFC] Only look for Alloca or Load when finding dbg.decla…
2 parents e47653c + e8f4d10 commit 3b64a8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Coroutines/CoroFrame.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,8 @@ static void insertSpills(const FrameDataInfo &FrameData, coro::Shape &Shape) {
18631863
if (LdInst->getPointerOperandType() != LdInst->getType())
18641864
break;
18651865
CurDef = LdInst->getPointerOperand();
1866+
if (!isa<AllocaInst, LoadInst>(CurDef))
1867+
break;
18661868
DIs = FindDbgDeclareUses(CurDef);
18671869
}
18681870
}

0 commit comments

Comments
 (0)