[llvm] [IR] Add non-const DbgRecord::getInstruction() overload (PR #206059)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 07:18:27 PDT 2026


================
@@ -370,8 +372,8 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
                         const DILocation *DI, DbgVariableRecord &InsertBefore);
 
   /// Iterator for ValueAsMetadata that internally uses direct pointer iteration
-  /// over either a ValueAsMetadata* or a ValueAsMetadata**, dereferencing to the
-  /// ValueAsMetadata .
+  /// over either a ValueAsMetadata* or a ValueAsMetadata**, dereferencing to
+  /// the ValueAsMetadata .
----------------
jmorse wrote:

While this might be more valid wrapping, it's better to leave this out of the patch as it's unrelated to this actual change, and could confuse future code archaeologists. If it needs to change, better to submit as an NFC formatting change.

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


More information about the llvm-commits mailing list