Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index 2db8d03c11aba5c0344dc4064433065a4b42bda4..26fec8ab7b914307ca9302f510a93bf79d1b6904 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -1722,9 +1722,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
void VisitThisFunction(ThisFunction* expr) { UNREACHABLE(); } |
- void VisitDeclarations(ZoneList<Declaration*>* decls) { |
- for (int i = 0; i < decls->length(); ++i) { |
- Declaration* decl = decls->at(i); |
+ void VisitDeclarations(Declaration::List* decls) { |
+ for (Declaration* decl : *decls) { |
RECURSE(Visit(decl)); |
} |
} |