[all-commits] [llvm/llvm-project] 44f197: [OpenMP] Fix C-only clang assert on parsing use_al...

cilkplus via All-commits all-commits at lists.llvm.org
Mon Jun 14 10:39:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44f197e94b83d389b59ce6a2a1977f972e6d34e3
      https://github.com/llvm/llvm-project/commit/44f197e94b83d389b59ce6a2a1977f972e6d34e3
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-06-14 (Mon, 14 Jun 2021)

  Changed paths:
    M clang/lib/Parse/ParseOpenMP.cpp
    A clang/test/OpenMP/target_uses_allocators.c

  Log Message:
  -----------
  [OpenMP] Fix C-only clang assert on parsing use_allocator clause of target directive

The parser code assumes building with C++ compiler and asserts when using clang (not clang++) on C file. I made the code dependent on input language. This shows up for amdgpu target.

Reviewed By: ABataev

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




More information about the All-commits mailing list