[llvm] [DebugInfo][RemoveDIs][NFC] Split findDbgDeclares into two functions (PR #77478)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 06:04:32 PST 2024


================
@@ -1881,9 +1876,8 @@ static void insertSpills(const FrameDataInfo &FrameData, coro::Shape &Shape) {
             CurDef = LdInst->getPointerOperand();
             if (!isa<AllocaInst, LoadInst>(CurDef))
               break;
-            DIs.clear();
-            DPVs.clear();
-            findDbgDeclares(DIs, CurDef, &DPVs);
+            DIs = findDbgDeclares(Def);
+            DPVs = findDPVDeclares(Def);
----------------
SLTozer wrote:

Yeah, that's correct - typo slipped in here!

https://github.com/llvm/llvm-project/pull/77478


More information about the llvm-commits mailing list