diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-11-12 19:07:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-11-12 19:07:43 +0000 |
commit | b0311c590d1381fe81198841fc1489c4d7484d6b (patch) | |
tree | d0c3e54fe8eb935fd0530b15855973a51160b51c | |
parent | 1a8fffa2fb803bbe2d07eb6c78ea4d99f293086b (diff) | |
download | bcm5719-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.cpp | 3 |
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()) { |