This is an archive of the discontinued LLVM Phabricator instance.

[Clang][OpenMP] Fix the issue that a functor is not captured properly in a task region
ClosedPublic

Authored by tianshilei1992 on Jan 16 2023, 2:07 PM.

Details

Summary

This patch fixes the issue that a functor is not captured properly if
that is used in a task region. It was introduced by https://reviews.llvm.org/D114546
where CallExpr is treated specially, but the callee itself is not properly visited.
https://reviews.llvm.org/D115902 already did some fix for one case. This patch
fixes another case.

Fix #57757.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Jan 16 2023, 2:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 2:07 PM
tianshilei1992 requested review of this revision.Jan 16 2023, 2:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 2:07 PM
This revision is now accepted and ready to land.Jan 16 2023, 2:18 PM
This revision was landed with ongoing or failed builds.Jan 16 2023, 7:35 PM
This revision was automatically updated to reflect the committed changes.