[llvm] [MemProf] Match call sites with line 0 (C++ non-virtual thunks) (PR #229919)

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 14:50:03 PDT 2026


================
@@ -141,6 +141,21 @@ static uint64_t computeStackId(const memprof::Frame &Frame) {
   return computeStackId(Frame.Function, Frame.LineOffset, Frame.Column);
 }
 
+// Compute the line offset of a debug location relative to the start line of
+// its enclosing subprogram, in the same way as the profile (see
+// memprof::Frame::LineOffset). Locations whose line is smaller than the
+// subprogram's line, most commonly compiler generated code with line 0 such
----------------
david-xl wrote:

Will fix.

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


More information about the llvm-commits mailing list