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

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 02:35:55 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);
----------------
CarlosAlbertoEnciso wrote:

I think it should use `CurDef` instead of `Def`.

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


More information about the llvm-commits mailing list