| Index: src/runtime/runtime-test.cc
|
| diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
|
| index 2e934403d9521e3fc385d118d0ae49437cd8f365..7475ddac87888c66c335f28c29230ecea2bf88d4 100644
|
| --- a/src/runtime/runtime-test.cc
|
| +++ b/src/runtime/runtime-test.cc
|
| @@ -327,12 +327,10 @@ RUNTIME_FUNCTION(Runtime_CheckWasmWrapperElision) {
|
| // check the type of the imported exported function, it should be also a WASM
|
| // function in our case
|
| Handle<Code> imported_fct;
|
| - Code::Kind target_kind;
|
| - if (type->value() == 0) {
|
| - target_kind = Code::WASM_FUNCTION;
|
| - } else if (type->value() == 1) {
|
| - target_kind = Code::WASM_TO_JS_FUNCTION;
|
| - }
|
| + CHECK(type->value() == 0 || type->value() == 1);
|
| +
|
| + Code::Kind target_kind =
|
| + type->value() == 0 ? Code::WASM_FUNCTION : Code::WASM_TO_JS_FUNCTION;
|
| count = 0;
|
| for (RelocIterator it(*intermediate_fct, mask); !it.done(); it.next()) {
|
| RelocInfo* rinfo = it.rinfo();
|
|
|