================
@@ -70,10 +79,8 @@ static bool printOp(const DWARFExpression::Operation *Op, 
raw_ostream &OS,
     unsigned Signed = Size & DWARFExpression::Operation::SignBit;
 
     if (Size == DWARFExpression::Operation::SizeSubOpLEB) {
-      StringRef SubName =
-          SubOperationEncodingString(Op->getCode(), 
Op->getRawOperand(Operand));
-      assert(!SubName.empty() && "DW_OP SubOp has no name!");
-      OS << " " << SubName;
+      assert(Operand == 0);
+      assert(SubOpcode);
----------------
arsenm wrote:

```suggestion
      assert(Operand == 0 && SubOpcode);
```
Assert message? 

https://github.com/llvm/llvm-project/pull/153883
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to