Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index cfee4f3cf14171df7815cc7a9465bf66c8d53a25..59ca4464939f607c933d44b42cfd76e6b2e3515d 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -301,30 +301,30 @@ class LR_WasmDecoder : public WasmDecoder { |
ssa_env->locals[pos++] = builder_->Param(i, sig->GetParam(i)); |
} |
// Initialize int32 locals. |
- if (function_env_->local_int32_count > 0) { |
+ if (function_env_->local_i32_count > 0) { |
TFNode* zero = builder_->Int32Constant(0); |
- for (uint32_t i = 0; i < function_env_->local_int32_count; i++) { |
+ for (uint32_t i = 0; i < function_env_->local_i32_count; i++) { |
ssa_env->locals[pos++] = zero; |
} |
} |
// Initialize int64 locals. |
- if (function_env_->local_int64_count > 0) { |
+ if (function_env_->local_i64_count > 0) { |
TFNode* zero = builder_->Int64Constant(0); |
- for (uint32_t i = 0; i < function_env_->local_int64_count; i++) { |
+ for (uint32_t i = 0; i < function_env_->local_i64_count; i++) { |
ssa_env->locals[pos++] = zero; |
} |
} |
// Initialize float32 locals. |
- if (function_env_->local_float32_count > 0) { |
+ if (function_env_->local_f32_count > 0) { |
TFNode* zero = builder_->Float32Constant(0); |
- for (uint32_t i = 0; i < function_env_->local_float32_count; i++) { |
+ for (uint32_t i = 0; i < function_env_->local_f32_count; i++) { |
ssa_env->locals[pos++] = zero; |
} |
} |
// Initialize float64 locals. |
- if (function_env_->local_float64_count > 0) { |
+ if (function_env_->local_f64_count > 0) { |
TFNode* zero = builder_->Float64Constant(0); |
- for (uint32_t i = 0; i < function_env_->local_float64_count; i++) { |
+ for (uint32_t i = 0; i < function_env_->local_f64_count; i++) { |
ssa_env->locals[pos++] = zero; |
} |
} |