HomePhabricator

[OpenMP] Fix C-only clang assert on parsing use_allocator clause of target…

Authored by ABataev on Jun 14 2021, 10:04 AM.

Description

[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