[llvm] 930a8c6 - [DebugInfo] [NFCI] Adding a missed out line in support for DW_TAG_generic_subrange.

Alok Kumar Sharma via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 29 03:48:55 PDT 2020


Author: Alok Kumar Sharma
Date: 2020-10-29T16:18:20+05:30
New Revision: 930a8c60b60805567e3cc0c7958be3ceeafd01f9

URL: https://github.com/llvm/llvm-project/commit/930a8c60b60805567e3cc0c7958be3ceeafd01f9
DIFF: https://github.com/llvm/llvm-project/commit/930a8c60b60805567e3cc0c7958be3ceeafd01f9.diff

LOG: [DebugInfo] [NFCI] Adding a missed out line in support for DW_TAG_generic_subrange.

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.

Added: 
    

Modified: 
    llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
index f2560982d1bf..9f111dc30f76 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
@@ -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: {


        


More information about the llvm-commits mailing list