From: David Blaikie Date: Thu, 12 Nov 2015 19:07:43 +0000 (+0000) Subject: Roll an expression into an assert to fix -Wunused-variable in a -Asserts build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c389fb7c5e55e52d0aca597984f73efa3555127;p=oota-llvm.git Roll an expression into an assert to fix -Wunused-variable in a -Asserts build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252925 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp index 641d6ea2b86..6fc309f0261 100644 --- a/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp +++ b/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp @@ -172,8 +172,7 @@ void WebAssemblyAsmPrinter::EmitFunctionBodyStart() { void WebAssemblyAsmPrinter::EmitInstruction(const MachineInstr *MI) { DEBUG(dbgs() << "EmitInstruction: " << *MI << '\n'); - unsigned NumDefs = MI->getDesc().getNumDefs(); - assert(NumDefs <= 1 && + assert(MI->getDesc().getNumDefs() <= 1 && "Instructions with multiple result values not implemented"); switch (MI->getOpcode()) {