diff options
author | Tim Keith <tkeith@nvidia.com> | 2020-07-26 12:13:36 -0700 |
---|---|---|
committer | Tim Keith <tkeith@nvidia.com> | 2020-07-26 12:13:39 -0700 |
commit | 7454acdf3b7d064ebbf6b8027296f42f504b285a (patch) | |
tree | ee1353302ebb7666a06a6b8fdbf69dce9c4cc96c /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | 3bbf3e026d3c692966583075ae6d12c4575e9d72 (diff) | |
download | llvm-7454acdf3b7d064ebbf6b8027296f42f504b285a.zip llvm-7454acdf3b7d064ebbf6b8027296f42f504b285a.tar.gz llvm-7454acdf3b7d064ebbf6b8027296f42f504b285a.tar.bz2 |
[flang] Fix implicit declarations in statement functions
If a symbol (that is not a dummy argument) is implicitly declared inside
a statement function, don't create it in the statement function's scope.
Instead, treat statement functions like blocks when finding the inclusive
scope and create the symbol there.
Add a new flag, StmtFunction, to symbols that represent statement functions.
Differential Revision: https://reviews.llvm.org/D84588
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
0 files changed, 0 insertions, 0 deletions