diff options
Diffstat (limited to 'src/passes/LegalizeJSInterface.cpp')
-rw-r--r-- | src/passes/LegalizeJSInterface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/LegalizeJSInterface.cpp b/src/passes/LegalizeJSInterface.cpp index 9a4dc6b63..7991d7eb3 100644 --- a/src/passes/LegalizeJSInterface.cpp +++ b/src/passes/LegalizeJSInterface.cpp @@ -183,7 +183,7 @@ private: std::map<Name, Name> illegalImportsToLegal; template<typename T> bool isIllegal(T* t) { - for (auto& param : t->sig.params) { + for (const auto& param : t->sig.params) { if (param == Type::i64) { return true; } @@ -223,7 +223,7 @@ private: call->type = func->sig.results; std::vector<Type> legalParams; - for (auto& param : func->sig.params) { + for (const auto& param : func->sig.params) { if (param == Type::i64) { call->operands.push_back(I64Utilities::recreateI64( builder, legalParams.size(), legalParams.size() + 1)); @@ -278,7 +278,7 @@ private: std::vector<Type> params; Index i = 0; - for (auto& param : im->sig.params) { + for (const auto& param : im->sig.params) { if (param == Type::i64) { call->operands.push_back(I64Utilities::getI64Low(builder, i)); call->operands.push_back(I64Utilities::getI64High(builder, i)); |