Merge remote-tracking branch 'origin/master' into runtime_compile_v5

This commit is contained in:
Ivan 2017-11-01 22:24:27 +03:00
commit ae4db7d3b3
180 changed files with 15036 additions and 10675 deletions

View file

@ -248,6 +248,8 @@ void CodeGenerator::finishLLModule(Module *m) {
}
void CodeGenerator::writeAndFreeLLModule(const char *filename) {
ir_->objc.finalize();
// Issue #1829: make sure all replaced global variables are replaced
// everywhere.
ir_->replaceGlobals();