diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-11-29 20:45:58 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-11-29 20:45:58 +0000 |
| commit | e48f223ed682147f714c2d1da21db07e25403f60 (patch) | |
| tree | 6982b1c5325a9e39df306546778d92ff5cf5f793 /lld/wasm/WriterUtils.cpp | |
| parent | 580c102ab8c980f317dd6e114cbbeac30e43b7b1 (diff) | |
| download | bcm5719-llvm-e48f223ed682147f714c2d1da21db07e25403f60.tar.gz bcm5719-llvm-e48f223ed682147f714c2d1da21db07e25403f60.zip | |
Remove `else` or `break` after `fatal`. NFC.
fatal() does not return, so we don't need `else` or `break` after a call
of fatal.
llvm-svn: 319355
Diffstat (limited to 'lld/wasm/WriterUtils.cpp')
| -rw-r--r-- | lld/wasm/WriterUtils.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/wasm/WriterUtils.cpp b/lld/wasm/WriterUtils.cpp index 882f4498656..e3be081b3ad 100644 --- a/lld/wasm/WriterUtils.cpp +++ b/lld/wasm/WriterUtils.cpp @@ -112,7 +112,6 @@ void wasm::writeInitExpr(raw_ostream &OS, const WasmInitExpr &InitExpr) { break; default: fatal("unknown opcode in init expr: " + Twine(InitExpr.Opcode)); - break; } writeU8(OS, WASM_OPCODE_END, "opcode:end"); } @@ -147,7 +146,6 @@ void wasm::writeImport(raw_ostream &OS, const WasmImport &Import) { break; default: fatal("unsupported import type: " + Twine(Import.Kind)); - break; } } @@ -166,7 +164,6 @@ void wasm::writeExport(raw_ostream &OS, const WasmExport &Export) { break; default: fatal("unsupported export type: " + Twine(Export.Kind)); - break; } } |

