diff options
| author | Abid Qadeer <haqadeer@amd.com> | 2025-02-04 13:17:14 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-04 13:17:14 +0000 |
| commit | 7ece824b6fa943bf20162d8d653d6e5cd0722a6e (patch) | |
| tree | ef23902ad10a4110ed3c6e0dcd962fdbd6663375 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
| parent | 69f202bf366a9c4c667d8c117d02ccff15705216 (diff) | |
| download | llvm-7ece824b6fa943bf20162d8d653d6e5cd0722a6e.zip llvm-7ece824b6fa943bf20162d8d653d6e5cd0722a6e.tar.gz llvm-7ece824b6fa943bf20162d8d653d6e5cd0722a6e.tar.bz2 | |
[flang][debug] Improve check for global variable detection. (#118326)
When a global variable is used in the OpenMP target region, it is passed
as an argument to the function that implements target region. But the
`DeclareOp` for this incarnation still have the original name of the
variable. As some of our checks to decide if a variable is global or nor
are based on the name, this can result in a local variable being treated
as global. This PR hardens the check a bit. We now also check that
memory ref is actually an `AddrOfOp` before looking at the name.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions
