[all-commits] [llvm/llvm-project] 5f5129: Fix contextual implicit conversions to int: with _...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri Jun 12 13:00:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f51294647b3c4c08dfd0e455b1a997074864d26
      https://github.com/llvm/llvm-project/commit/5f51294647b3c4c08dfd0e455b1a997074864d26
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaOverload.cpp
    A clang/test/Sema/atomic-conversions-to-int.cpp

  Log Message:
  -----------
  Fix contextual implicit conversions to int: with _Atomic (#203522)

PerformContextualImplicitConversion was performing
default-lvalue-conversions, then basing decisions on viable conversion
functions on this type However, when we then went to add the candidates
we were using the 'old' value (pre-conversion) of the type, resulting in
us regaining the lost 'atomic' from the default Lvalue conversion.

This patch updates the 'from' variable to be the converted value so all
conversions are done post-conversion.

Fixes: #201770



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