[all-commits] [llvm/llvm-project] d764ad: [OPENMP]Fix PR48394: need to capture variables use...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Dec 4 13:45:48 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d764ad72e5fe7ae1cd9b345ad72f4447355a11b2
      https://github.com/llvm/llvm-project/commit/d764ad72e5fe7ae1cd9b345ad72f4447355a11b2
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

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

  Log Message:
  -----------
  [OPENMP]Fix PR48394: need to capture variables used in atomic constructs.

The variables used in atomic construct should be captured in outer
task-based regions implicitly. Otherwise, the compiler will crash trying
to find the address of the local variable.

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




More information about the All-commits mailing list