[flang] Fix build problem with clang
authorTim Keith <tkeith@nvidia.com>
Fri, 22 Feb 2019 03:14:28 +0000 (19:14 -0800)
committerTim Keith <tkeith@nvidia.com>
Fri, 22 Feb 2019 03:14:28 +0000 (19:14 -0800)
commit8b3783e2eacca6e0d7e478f59b882b5a89d17112
tree7ef48e687bada1cea329e63c514c9ffd7f02e1fe
parent132de9612c365714472d0ea5b6cc84962513f6ca
[flang] Fix build problem with clang

Moving one of the `Pre(ImplicitStmt)` functions up to
`DeclarationVisitor` seemed to cause clang to complain that the `Pre`
call from the `Walk` function was ambiguous. So this change moves
it back to `ResolveNameVisitor`.

Also, remove an unused variable that was causing a warning.

Original-commit: flang-compiler/f18@766d000e2507d92b7774ad2c37732bafccc7cbcb
Reviewed-on: https://github.com/flang-compiler/f18/pull/299
flang/lib/semantics/resolve-names.cc