[all-commits] [llvm/llvm-project] 539a2a: [OpenMP] Fix atomic compare handling with overload...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed May 28 19:45:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 539a2ac5f2cd5042b308aecac45ae0a706c9b7a7
      https://github.com/llvm/llvm-project/commit/539a2ac5f2cd5042b308aecac45ae0a706c9b7a7
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

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

  Log Message:
  -----------
  [OpenMP] Fix atomic compare handling with overloaded operators (#141142)

Summary:
When there are overloaded C++ operators in the global namespace the AST
node for these is not a `BinaryExpr` but a `CXXOperatorCallExpr`. Modify
the uses to handle this case, basically just treating it as a binary
expression with two arguments.

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



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