From b8e9fb8816ecedf720f2085098e76c836e9f8434 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Thu, 17 Dec 2015 14:58:34 +0000 Subject: [PATCH] Fix unused variable warning in release builds. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255897 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp b/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp index c6977bb6cf7..9d6f427b40e 100644 --- a/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp +++ b/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp @@ -77,9 +77,7 @@ unsigned WebAssemblyMCCodeEmitter::getMachineOpValue( assert(MO.isExpr()); - const MCExpr *Expr = MO.getExpr(); - - assert(Expr->getKind() == MCExpr::SymbolRef); + assert(MO.getExpr()->getKind() == MCExpr::SymbolRef); assert(false && "FIXME: not implemented yet"); -- 2.34.1