| Index: src/asmjs/asm-wasm-builder.cc
|
| diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc
|
| index 24278b1b805dae9466ee1055fe0ba1ebe9550469..9ac748bdd0f4b553327ecbe0c32855372b45cc68 100644
|
| --- a/src/asmjs/asm-wasm-builder.cc
|
| +++ b/src/asmjs/asm-wasm-builder.cc
|
| @@ -1698,8 +1698,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> {
|
| ZoneHashMap::Entry* entry =
|
| global_variables_.Lookup(v, ComputePointerHash(v));
|
| if (entry == nullptr) {
|
| - uint32_t index =
|
| - builder_->AddGlobal(WasmOpcodes::MachineTypeFor(type), 0);
|
| + uint32_t index = builder_->AddGlobal(type, 0);
|
| IndexContainer* container = new (zone()) IndexContainer();
|
| container->index = index;
|
| entry = global_variables_.LookupOrInsert(v, ComputePointerHash(v),
|
|
|