[llvm] [NFC] Add DIExpression::extractLeadingOffset (PR #97719)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 11:18:29 PDT 2024


================
@@ -2982,6 +2982,16 @@ class DIExpression : public MDNode {
   /// return true with an offset of zero.
   bool extractIfOffset(int64_t &Offset) const;
 
+  /// Assuming that the expression operates on an address, extract a constant
+  /// offset and the succsessive ops. Return false if the expression contains
----------------
SLTozer wrote:

```suggestion
  /// offset and the successive ops. Return false if the expression contains
```

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


More information about the llvm-commits mailing list