diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-10-25 23:35:14 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-10-25 23:35:14 +0000 |
commit | 1d13e6be37e90851a6ad05a25eb21830857d784e (patch) | |
tree | 7ee73c0c048c83ca774b3c2a005790d195c82ade /llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp | |
parent | 1147d91402559d0d1193265f81bc854674a1e36f (diff) | |
download | bcm5719-llvm-1d13e6be37e90851a6ad05a25eb21830857d784e.tar.gz bcm5719-llvm-1d13e6be37e90851a6ad05a25eb21830857d784e.zip |
Address comments
- Add llvm-mc test case (and delete the old one)
- Change report_fatal_error to assertions
llvm-svn: 345334
Diffstat (limited to 'llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp index e26cf1d8cf4..33b224adc6e 100644 --- a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp +++ b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp @@ -85,14 +85,12 @@ void WebAssemblyInstPrinter::printInst(const MCInst *MI, raw_ostream &OS, break; case WebAssembly::END_LOOP: case WebAssembly::END_LOOP_S: - if (ControlFlowStack.empty()) - report_fatal_error("End marker mismatch!"); + assert(!ControlFlowStack.empty() && "End marker mismatch!"); ControlFlowStack.pop_back(); break; case WebAssembly::END_BLOCK: case WebAssembly::END_BLOCK_S: - if (ControlFlowStack.empty()) - report_fatal_error("END marker mismatch!"); + assert(!ControlFlowStack.empty() && "End marker mismatch!"); printAnnotation( OS, "label" + utostr(ControlFlowStack.pop_back_val().first) + ':'); break; |