Index: src/asmjs/asm-typer.cc |
diff --git a/src/asmjs/asm-typer.cc b/src/asmjs/asm-typer.cc |
index bdd657f8f1bf73ade9e0b7014c90367a38bf5a6b..88879ab84d4a190c6954bcecdf41e1543d521e1d 100644 |
--- a/src/asmjs/asm-typer.cc |
+++ b/src/asmjs/asm-typer.cc |
@@ -428,7 +428,9 @@ AsmTyper::StandardMember AsmTyper::VariableAsStandardMember(Variable* var) { |
if (var_info == nullptr) { |
return kNone; |
} |
- return var_info->standard_member(); |
+ StandardMember member = var_info->standard_member(); |
+ stdlib_uses_.insert(member); |
+ return member; |
} |
bool AsmTyper::Validate() { |