File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -2421,8 +2421,22 @@ bool IRGenDebugInfoImpl::buildDebugInfoExpression(
2421
2421
case SILDIExprOperator::Dereference:
2422
2422
Operands.push_back (llvm::dwarf::DW_OP_deref);
2423
2423
break ;
2424
- default :
2425
- llvm_unreachable (" Unrecognized operator" );
2424
+ case SILDIExprOperator::Plus:
2425
+ Operands.push_back (llvm::dwarf::DW_OP_plus);
2426
+ break ;
2427
+ case SILDIExprOperator::Minus:
2428
+ Operands.push_back (llvm::dwarf::DW_OP_minus);
2429
+ break ;
2430
+ case SILDIExprOperator::ConstUInt:
2431
+ Operands.push_back (llvm::dwarf::DW_OP_constu);
2432
+ Operands.push_back (*ExprOperand[1 ].getAsConstInt ());
2433
+ break ;
2434
+ case SILDIExprOperator::ConstSInt:
2435
+ Operands.push_back (llvm::dwarf::DW_OP_consts);
2436
+ Operands.push_back (*ExprOperand[1 ].getAsConstInt ());
2437
+ break ;
2438
+ case SILDIExprOperator::INVALID:
2439
+ return false ;
2426
2440
}
2427
2441
}
2428
2442
return true ;
You can’t perform that action at this time.
0 commit comments