[flang] Replace scope stack with current scope
authorTim Keith <tkeith@nvidia.com>
Fri, 10 Aug 2018 00:12:31 +0000 (17:12 -0700)
committerTim Keith <tkeith@nvidia.com>
Fri, 10 Aug 2018 00:12:31 +0000 (17:12 -0700)
commit44937f6321df9bc1ce8a321e57983eb08f28e98e
tree2a08d134dcf59add9f2b1d18de4464b78323125a
parent4cd3eb3c4a603eeb46d1221aa0777b69992d8c4f
[flang] Replace scope stack with current scope

We don't need to manage a stack of scopes: each scope has a reference to
its parent, so popping the scope stack is equivalent to setting the
new current scope to the parent of the old current scope.

Original-commit: flang-compiler/f18@022aa7a7f9d09ee96db6ec9a025afb6bcf99cc55
Reviewed-on: https://github.com/flang-compiler/f18/pull/167
Tree-same-pre-rewrite: false
flang/lib/semantics/resolve-names.cc