[llvm] Handle #dbg_values in SROA. (PR #94070)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 08:51:48 PDT 2024
================
@@ -426,6 +426,11 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
/// Does this describe the address of a local variable. True for dbg.addr
/// and dbg.declare, but not dbg.value, which describes its value.
bool isAddressOfVariable() const { return Type == LocationType::Declare; }
+
+ /// Does this describe the value of a local variable. False for dbg.declare,
----------------
adrian-prantl wrote:
```suggestion
/// Determine if this describes the value of a local variable. False for dbg.declare,
```
https://github.com/llvm/llvm-project/pull/94070
More information about the llvm-commits
mailing list