[llvm] r255897 - Fix unused variable warning in release builds. NFC.
Diego Novillo via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 06:58:35 PST 2015
Author: dnovillo
Date: Thu Dec 17 08:58:34 2015
New Revision: 255897
URL: http://llvm.org/viewvc/llvm-project?rev=255897&view=rev
Log:
Fix unused variable warning in release builds. NFC.
Modified:
llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp?rev=255897&r1=255896&r2=255897&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp Thu Dec 17 08:58:34 2015
@@ -77,9 +77,7 @@ unsigned WebAssemblyMCCodeEmitter::getMa
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");
More information about the llvm-commits
mailing list