[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)

J. Ryan Stinnett via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 10:30:47 PDT 2024


================
@@ -487,14 +490,15 @@ def Main():
 
                 if bugs_metadata == "DILocation":
                     try:
+                        origin = bug["origin"]
                         action = bug["action"]
                         bb_name = bug["bb-name"]
                         fn_name = bug["fn-name"]
                         instr = bug["instr"]
                     except:
                         skipped_bugs += 1
                         continue
-                    di_loc_bug = DILocBug(action, bb_name, fn_name, instr)
+                    di_loc_bug = DILocBug(origin, action, bb_name, fn_name, instr)
----------------
jryans wrote:

Maybe move `origin` to the end, which also seems to match the order where its used?

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


More information about the llvm-commits mailing list