1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

Fix broken merge

This commit is contained in:
Ibrahim Numanagić 2021-12-12 11:36:30 -08:00 committed by GitHub
parent d3f01b541b
commit 9c8424275e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,10 @@ llvm::Expected<std::string> JIT::exec(const std::string &code) {
auto *cache = compiler->getCache();
auto typechecked = ast::TypecheckVisitor::apply(cache, simplified);
std::vector<std::string> globalNames;
for (auto &g : cache->globals) {
if (!g.second)
globalNames.push_back(g.first);
}
// add newly realized functions
std::vector<ast::StmtPtr> v;
std::vector<ir::Func **> frs;