[llvm] [DebugInfo] Helper method for finding the deepest inlining location (PR #161696)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 03:53:59 PDT 2025


================
@@ -2600,14 +2600,23 @@ class DILocation : public MDNode {
   StringRef getDirectory() const { return getScope()->getDirectory(); }
   std::optional<StringRef> getSource() const { return getScope()->getSource(); }
 
+  /// Get the location where this is inlined
+  ///
+  /// Walk through \a getInlinedAt() and return the \a DILocation where this is
+  /// inlined.
----------------
OCHyams wrote:

"... where this is inlined" feels potentially confusing/ambiguous. How about something like "... and return the DILocation of the first call site in the inlining chain"?

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


More information about the llvm-commits mailing list