[all-commits] [llvm/llvm-project] 383f3a: [OpenMP] Diagnose bad 'omp declare variant' that r...

Mike Rice via All-commits all-commits at lists.llvm.org
Thu Feb 17 10:37:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 383f3a467c92499956ed804eb2bd69ad8576615b
      https://github.com/llvm/llvm-project/commit/383f3a467c92499956ed804eb2bd69ad8576615b
  Author: Mike Rice <michael.p.rice at intel.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/declare_variant_messages.c

  Log Message:
  -----------
  [OpenMP] Diagnose bad 'omp declare variant' that references itself.

When an a variant is specified that is the same as the base function
the compiler will end up crashing in CodeGen. Give an error instead.

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




More information about the All-commits mailing list