summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF/InstPrinter
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/BPF/InstPrinter')
-rw-r--r--llvm/lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp b/llvm/lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp
index 05f6d825719..552288b819d 100644
--- a/llvm/lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp
+++ b/llvm/lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp
@@ -33,6 +33,7 @@ void BPFInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
}
static void printExpr(const MCExpr *Expr, raw_ostream &O) {
+#ifndef NDEBUG
const MCSymbolRefExpr *SRE;
if (const MCBinaryExpr *BE = dyn_cast<MCBinaryExpr>(Expr))
@@ -44,6 +45,7 @@ static void printExpr(const MCExpr *Expr, raw_ostream &O) {
MCSymbolRefExpr::VariantKind Kind = SRE->getKind();
assert(Kind == MCSymbolRefExpr::VK_None);
+#endif
O << *Expr;
}
OpenPOWER on IntegriCloud