Fix globals in JIT

pull/78/head
Ibrahim Numanagić 2022-09-29 20:57:34 -07:00
parent d5741a27e0
commit 0622bb42e1
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ StmtPtr SimplifyVisitor::transformAssignment(ExprPtr lhs, ExprPtr rhs, ExprPtr t
}
// Register all toplevel variables as global in JIT mode
bool isGlobal = (ctx->cache->isJit && val->isGlobal() && !val->isGeneric() == 0) ||
bool isGlobal = (ctx->cache->isJit && val->isGlobal() && !val->isGeneric()) ||
(canonical == VAR_ARGV);
if (isGlobal && !val->isGeneric())
ctx->cache->addGlobal(canonical);