[llvm] r285055 - Fix an unused warning in WebAssemblyInstPrinter with NDEBUG.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 02:08:51 PDT 2016
Author: d0k
Date: Tue Oct 25 04:08:50 2016
New Revision: 285055
URL: http://llvm.org/viewvc/llvm-project?rev=285055&view=rev
Log:
Fix an unused warning in WebAssemblyInstPrinter with NDEBUG.
Patch by Sam McCall!
Differential Revision: https://reviews.llvm.org/D25934
Modified:
llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp?rev=285055&r1=285054&r2=285055&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp Tue Oct 25 04:08:50 2016
@@ -154,6 +154,7 @@ void WebAssemblyInstPrinter::printOperan
(Desc.TSFlags & WebAssemblyII::VariableOpIsImmediate)) &&
"WebAssemblyII::VariableOpIsImmediate should be set for "
"variable_ops immediate ops");
+ (void)Desc;
// TODO: (MII.get(MI->getOpcode()).TSFlags &
// WebAssemblyII::VariableOpImmediateIsLabel)
// can tell us whether this is an immediate referencing a label in the
More information about the llvm-commits
mailing list