[all-commits] [llvm/llvm-project] 800f26: [CUDA][HIP] Fix delete operator for -fopenmp

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Apr 19 11:47:50 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 800f26386cd9054ceed68e481612908f635b9718
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-04-19 (Tue, 19 Apr 2022)

  Changed paths:
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/SemaCUDA/openmp-parallel.cu

  Log Message:
  [CUDA][HIP] Fix delete operator for -fopenmp

When new operator is called in OpenMP parallel region,
delete operator is resolved and checked. Due to similar
issue fixed by https://reviews.llvm.org/D121765,
when resolving delete operator, the caller was not
determined correctly, which results in error as
shown in https://godbolt.org/z/jKhd8qKos.

This patch fixes the issue in a similar way as

Reviewed by: Artem Belevich

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

More information about the All-commits mailing list