Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 511367ee2a4f541a362e1f5523f49499c23e0dad..46c4928ceb04799f86f7b2e07f81777bace0f845 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -1921,8 +1921,9 @@ Node* WasmGraphBuilder::CallIndirect(uint32_t index, Node** args, |
Int32Constant(kPointerSizeLog2)), |
Int32Constant(fixed_offset)), |
*effect_, *control_); |
- Node* sig_match = graph()->NewNode(machine->WordEqual(), load_sig, |
- jsgraph()->SmiConstant(index)); |
+ Node* sig_match = |
+ graph()->NewNode(machine->Word32Equal(), |
+ BuildChangeSmiToInt32(load_sig), Int32Constant(index)); |
trap_->AddTrapIfFalse(wasm::kTrapFuncSigMismatch, sig_match, position); |
} |