[PATCH] D135166: [DebugInfo] getMergedLocation: Maintain the line number if they match

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 15:47:45 PDT 2022


dblaikie added inline comments.


================
Comment at: llvm/lib/IR/DebugInfoMetadata.cpp:122
     if (!S && L) {
+      Line = Col = 0;
       S = L->getScope();
----------------
Could you walk me through why the line/col get set to zero at this point? I'd maybe have thought they should get set to the line/col of the InlinedAt location? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135166/new/

https://reviews.llvm.org/D135166



More information about the llvm-commits mailing list