From 7c389fb7c5e55e52d0aca597984f73efa3555127 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 12 Nov 2015 19:07:43 +0000 Subject: [PATCH] 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 --- lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()) { -- 2.34.1