| Index: src/ast/modules.h
|
| diff --git a/src/ast/modules.h b/src/ast/modules.h
|
| index ce8aba8d709cd2a2867c39129206ef6c0180ec03..1eb6f4479636c6a78d5f23987cd33525f59f43d3 100644
|
| --- a/src/ast/modules.h
|
| +++ b/src/ast/modules.h
|
| @@ -214,8 +214,9 @@ class ModuleDescriptor : public ZoneObject {
|
|
|
| int AddModuleRequest(const AstRawString* specifier) {
|
| DCHECK_NOT_NULL(specifier);
|
| + int module_requests_count = static_cast<int>(module_requests_.size());
|
| auto it = module_requests_
|
| - .insert(std::make_pair(specifier, module_requests_.size()))
|
| + .insert(std::make_pair(specifier, module_requests_count))
|
| .first;
|
| return it->second;
|
| }
|
|
|