[llvm] Handle #dbg_values in SROA. (PR #94070)

Shubham Sandeep Rastogi via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 13:52:09 PDT 2024


================
@@ -4977,8 +4977,6 @@ const Value *getAddress(const DbgVariableIntrinsic *DVI) {
 }
 
 const Value *getAddress(const DbgVariableRecord *DVR) {
-  assert(DVR->getType() == DbgVariableRecord::LocationType::Declare ||
-         DVR->getType() == DbgVariableRecord::LocationType::Assign);
----------------
rastogishubham wrote:

So what is the solution here? I am not sure what to do? Can you highlight what handling such cases for dbg_value will look like with future API changes?

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


More information about the llvm-commits mailing list