Index: src/wasm/wasm-opcodes.cc |
diff --git a/src/wasm/wasm-opcodes.cc b/src/wasm/wasm-opcodes.cc |
index 658c3b8c929d803db94d3e395bac0e44667059dc..662c0b37dbc903871359e1f8ff1f73ca2e7c4c19 100644 |
--- a/src/wasm/wasm-opcodes.cc |
+++ b/src/wasm/wasm-opcodes.cc |
@@ -176,16 +176,16 @@ int WasmOpcodes::TrapReasonToMessageId(TrapReason reason) { |
} |
} |
-int32_t WasmOpcodes::TrapReasonToFunctionId(TrapReason reason) { |
+Runtime::FunctionId WasmOpcodes::TrapReasonToFunctionId(TrapReason reason) { |
switch (reason) { |
#define TRAPREASON_TO_MESSAGE(name) \ |
case k##name: \ |
- return static_cast<int32_t>(Runtime::kThrowWasm##name); |
+ return Runtime::kThrowWasm##name; |
FOREACH_WASM_TRAPREASON(TRAPREASON_TO_MESSAGE) |
#undef TRAPREASON_TO_MESSAGE |
default: |
UNREACHABLE(); |
- return -1; |
+ return Runtime::kNumFunctions; |
} |
} |