[clang] [llvm] [Dwarf] Support heterogeneous DW_{OP,AT}s needed for AMDGPU CFI (PR #153883)
Scott Linder via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 15 08:25:46 PDT 2025
================
@@ -262,8 +285,10 @@ static bool printCompactDWARFExpr(
break;
}
case dwarf::DW_OP_LLVM_user: {
- assert(Op.getSubCode() == dwarf::DW_OP_LLVM_nop);
- break;
+ std::optional<unsigned> SubOpcode = Op.getSubCode();
+ if (SubOpcode == dwarf::DW_OP_LLVM_nop)
+ break;
----------------
slinder1 wrote:
This is the "compact" printer, which tries to collapse as much of the expression as possible, and in the case of a noop like this it just doesn't print anything
https://github.com/llvm/llvm-project/pull/153883
More information about the cfe-commits
mailing list