summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-11-12 19:07:43 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-11-12 19:07:43 +0000
commitb0311c590d1381fe81198841fc1489c4d7484d6b (patch)
treed0c3e54fe8eb935fd0530b15855973a51160b51c
parent1a8fffa2fb803bbe2d07eb6c78ea4d99f293086b (diff)
downloadbcm5719-llvm-b0311c590d1381fe81198841fc1489c4d7484d6b.tar.gz
bcm5719-llvm-b0311c590d1381fe81198841fc1489c4d7484d6b.zip
Roll an expression into an assert to fix -Wunused-variable in a -Asserts build
llvm-svn: 252925
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
index 641d6ea2b86..6fc309f0261 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud