summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.h
diff options
context:
space:
mode:
authorTom Eccles <tom.eccles@arm.com>2024-07-22 16:05:17 +0100
committerGitHub <noreply@github.com>2024-07-22 16:05:17 +0100
commit2e6558b8bcdaa4c0924f1f49a9200cb2dea44bd4 (patch)
treeed5548530ec2c2e2bfe8e4a5b9f085307f7db5d7 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.h
parentca3d4dfe0c8844a8010751c51600a3bd3f6f80a4 (diff)
[flang][OpenMP] fix lastprivate for allocatables (#99686)
Don't use `copyHostAssociateVar` for allocatable variables. It isn't clear to me whether or not this should be addressed in `copyHostAssociateVar` instead of inside OpenMP. I opted for OpenMP to minimise how many things I effected. `copyHostAssociateVar` will not update the destination variable if the destination variable was unallocated. This is incorrect because assignment inside of the openmp block can cause the allocation status of the variable to change. Furthermore, `copyHostAssociateVar` seems to only copy the variable address not other metadata like the size of the allocation. Reallocation by assignment could cause this to change.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.h')
0 files changed, 0 insertions, 0 deletions