Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix random bux in the inlining pass (#980)
* when we inline AST nodes, we keep the track of which nodes being replaced by using a map containing address of those nodes. * when inlining of a particular node is finished, we were not removing that node address from the map. * if we get a situation where AST node with same address is created (dynamic allocation) during inlining pass, it might end-up replacing wrong node just because it has the same address as previously inlined node. * to avoid this, make sure to clear map entry when inlining is done! Fixes #809
- Loading branch information