[DebugInfo] [NFCI] Adding a missed out line in support for DW_TAG_generic_subrange.
authorAlok Kumar Sharma <AlokKumar.Sharma@amd.com>
Thu, 29 Oct 2020 10:38:51 +0000 (16:08 +0530)
committerAlok Kumar Sharma <AlokKumar.Sharma@amd.com>
Thu, 29 Oct 2020 10:48:20 +0000 (16:18 +0530)
This commit adds a missed out line in earlier commit for DW_TAG_generic_subrange.
Previous commit ID: a6dd01afa3d5902203d04a72e0b478078f796a35
Differential Revision: https://reviews.llvm.org/D89218
Thanks markus for pointing this out.

llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp

index f256098..9f111dc 100644 (file)
@@ -543,6 +543,7 @@ void DwarfExpression::addExpression(DIExpressionCursor &&ExprCursor,
       break;
     case dwarf::DW_OP_consts:
       assert(!isRegisterLocation());
+      emitOp(dwarf::DW_OP_consts);
       emitSigned(Op->getArg(0));
       break;
     case dwarf::DW_OP_LLVM_convert: {