| Index: src/asmjs/asm-wasm-builder.cc
|
| diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc
|
| index bb9f14dea33b7e12950287d17482a1485bbf71c2..79845fcbe7db7f2242b37209da7d13b9b5e33d4d 100644
|
| --- a/src/asmjs/asm-wasm-builder.cc
|
| +++ b/src/asmjs/asm-wasm-builder.cc
|
| @@ -782,7 +782,10 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> {
|
|
|
| void PopulateFunctionTable(VariableProxy* table, ArrayLiteral* funcs) {
|
| FunctionTableIndices* indices = LookupFunctionTable(table->var());
|
| - DCHECK_NOT_NULL(indices);
|
| + // Ignore unused function tables.
|
| + if (indices == nullptr) {
|
| + return;
|
| + }
|
| for (int i = 0; i < funcs->values()->length(); ++i) {
|
| VariableProxy* func = funcs->values()->at(i)->AsVariableProxy();
|
| DCHECK_NOT_NULL(func);
|
|
|