From ce00cd6ae845677ef95f8d62a3745f6e13125882 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 15 Oct 2019 14:23:11 +0000 Subject: [PATCH] [AsmPrinter] Fix unused variable warning in Release builds. NFC. llvm-svn: 374894 --- llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp index 42a7f56..1c5a244d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp @@ -319,6 +319,7 @@ bool DwarfExpression::addMachineRegExpression(const TargetRegisterInfo &TRI, void DwarfExpression::beginEntryValueExpression( DIExpressionCursor &ExprCursor) { auto Op = ExprCursor.take(); + (void)Op; assert(Op && Op->getOp() == dwarf::DW_OP_LLVM_entry_value); assert(!isMemoryLocation() && "We don't support entry values of memory locations yet"); -- 2.7.4