[all-commits] [llvm/llvm-project] 605a9e: [OpenMP] Fix infinite loop on recursive initialize...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Feb 7 11:44:43 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 605a9e37b64b5b5647f1f3e560f7ffe31157841c
      https://github.com/llvm/llvm-project/commit/605a9e37b64b5b5647f1f3e560f7ffe31157841c
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-02-07 (Fri, 07 Feb 2025)

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

  Log Message:
  -----------
  [OpenMP] Fix infinite loop on recursive initializers (#126269)

Summary:
If the user tried to initialize a gobal declare target variable with
itself the compiler will hang forever. Add a visited set to make sure
this stops.

Fixes: https://github.com/llvm/llvm-project/issues/69194



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list