[all-commits] [llvm/llvm-project] 3f2e3d: [OPENMP]Do not diagnose references to non-integral...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Jan 7 06:47:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f2e3dc44b42fab2e991222e74248b7006f1091e
      https://github.com/llvm/llvm-project/commit/3f2e3dc44b42fab2e991222e74248b7006f1091e
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

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

  Log Message:
  -----------
  [OPENMP]Do not diagnose references to non-integral types for ref in
declare simd.

According to the standard, a list-item that appears in a linear clause without the ref modifier must be of integral or pointer type, or must be a reference to an integral or pointer type. Added check that this restriction is applied only to non-ref items.




More information about the All-commits mailing list