[all-commits] [llvm/llvm-project] ae53c7: [Clang][OpenMP] Fix the issue that a functor is no...

Shilei Tian via All-commits all-commits at lists.llvm.org
Mon Jan 16 19:35:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae53c7f4a21104e2eb84139f3ce4c468e2632590
      https://github.com/llvm/llvm-project/commit/ae53c7f4a21104e2eb84139f3ce4c468e2632590
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/test/OpenMP/bug57757.cpp

  Log Message:
  -----------
  [Clang][OpenMP] Fix the issue that a functor is not captured properly in a task region

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.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D141873




More information about the All-commits mailing list