[llvm] df03daa - [NFC][DebugInfo] Fix a parameter name in calculateFragmentIntersect's docs (#216142)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 13:59:53 PDT 2026


Author: Eric Christopher
Date: 2026-08-13T13:59:49-07:00
New Revision: df03daa1900190088a9b3c196ce272d10827ad8a

URL: https://github.com/llvm/llvm-project/commit/df03daa1900190088a9b3c196ce272d10827ad8a
DIFF: https://github.com/llvm/llvm-project/commit/df03daa1900190088a9b3c196ce272d10827ad8a.diff

LOG: [NFC][DebugInfo] Fix a parameter name in calculateFragmentIntersect's docs (#216142)

The docs spell it VarFarg, and the parameter is VarFrag, so the \p
reference resolves to nothing. That line is the one saying when Result
comes back empty, which is the behavior callers most need to look up.

Added: 
    

Modified: 
    llvm/include/llvm/IR/DebugInfoMetadata.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h
index a1916675b5dc6..dd11edf7f6935 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -4019,7 +4019,7 @@ class DIExpression : public MDNode {
   ///
   /// Results and return value:
   /// - Return false if the result can't be calculated for any reason.
-  /// - \p Result is set to nullopt if the intersect equals \p VarFarg.
+  /// - \p Result is set to nullopt if the intersect equals \p VarFrag.
   /// - \p Result contains a zero-sized fragment if there's no intersect.
   /// - \p OffsetFromLocationInBits is set to the 
diff erence between the first
   ///   bit of the variable location and the first bit of the slice. The


        


More information about the llvm-commits mailing list