Skip to content

Assertion `!(IsVariadic && IsIndirect)' failed: llvm::SDDbgValue::SDDbgValue(llvm::BumpPtrAllocator &, llvm::DIVariable *, llvm::DIExpression *, ArrayRef< llvm::SDDbgOperand>, ArrayRef<llvm::SDNode *>, bool, llvm::DebugLoc, unsigned int, bool) #72447

Closed
@dcci

Description

@dcci

To repro:

./llc -O3 reduced.ll.txt

(file attached)
reduced.ll.txt

Points to:

commit 3ab03ad37d48d60596fc7f50f6c76794030baaf3
Author: David <david.stenberg@ericsson.com>
Date:   Wed Oct 25 12:51:49 2023 +0200

    [SelectionDAG] Salvage debug info for non-constant ADDs (#68981)
    
    Teach SelectionDAG::salvageDebugInfo() to salvage debug information for
    ADD nodes where the RHS is non-constant.
    
    Co-authored-by: Mikael Holmen <mikael.holmen@ericsson.com>
    
    - [DebugInfo] Precommit testcase for pointer addition with unknown
    offset
    - [SelectionDAG] Salvage debug info for non-constant ADDs
    
    ---------
    
    Co-authored-by: Mikael Holmen <mikael.holmen@ericsson.com>

 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp     | 43 ++++++++++++----
 .../pointer-add-unknown-offset-debug-info.mir      | 60 ++++++++++++++++++++++
 2 files changed, 93 insertions(+), 10 deletions(-)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions