[all-commits] [llvm/llvm-project] cd6e91: [Clang] Handle TemplateTemplateParmDecl in concept...

Marco Elver via All-commits all-commits at lists.llvm.org
Thu Oct 23 03:44:57 PDT 2025


  Branch: refs/heads/users/melver/spr/clang-implement-constexpr-evaluation-for-__builtin_infer_alloc_token
  Home:   https://github.com/llvm/llvm-project
  Commit: cd6e913d00cf91b7bbac205351e967a68cd14797
      https://github.com/llvm/llvm-project/commit/cd6e913d00cf91b7bbac205351e967a68cd14797
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M clang/lib/Sema/SemaConcept.cpp
    M clang/test/SemaTemplate/concepts.cpp

  Log Message:
  -----------
  [Clang] Handle TemplateTemplateParmDecl in concept cache (#164777)

We forgot to handle those in e9972debc, hence the inconsistency across
multiple instantiations.

This is a regression on trunk, so no release note.

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


  Commit: f5ac58f5b88086f6b0e6e02383bc811e343dec06
      https://github.com/llvm/llvm-project/commit/f5ac58f5b88086f6b0e6e02383bc811e343dec06
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M clang/lib/Sema/SemaConcept.cpp

  Log Message:
  -----------
  [Clang] Fix a use-after-move issue in SubsumptionChecker (#164781)

Spotted by Shafik.


  Commit: b474be668091301d4a214da922f0cb98d416dc6b
      https://github.com/llvm/llvm-project/commit/b474be668091301d4a214da922f0cb98d416dc6b
  Author: Keith Thompson <Keith.S.Thompson at gmail.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst

  Log Message:
  -----------
  [clang-tidy][NFC] Clarify switch-missing-default-case doc (#164699) (#164709)

Falling through a defaultless switch statement has well defined
behavior. Fixes https://github.com/llvm/llvm-project/issues/164699.

Credit for noticing this problem goes to user "pozz" on comp.lang.c,
Message-ID: <10da67g$3q59f$1 at dont-email.me>


  Commit: 6003a448b3998c720fe87f0f4d8f263ebe9ae2ee
      https://github.com/llvm/llvm-project/commit/6003a448b3998c720fe87f0f4d8f263ebe9ae2ee
  Author: Abhishek Kaushik <abhishek.kaushik at intel.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M llvm/lib/CGData/CodeGenDataReader.cpp

  Log Message:
  -----------
  [NFC][CGData] Use `std::move` in `lazyDeserialize` call (#164558)

Use `std::move` for shared_ptr in `lazyDeserialize` call to avoid extra
refcount ops


  Commit: 710a5873fbf43d312555a1ddbafafa10f44f576e
      https://github.com/llvm/llvm-project/commit/710a5873fbf43d312555a1ddbafafa10f44f576e
  Author: Abhishek Kaushik <abhishek.kaushik at intel.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M llvm/lib/CGData/StableFunctionMap.cpp

  Log Message:
  -----------
  [NFC][CGData] Add assert to `StableFunctionMap::at` (#164564)

Add assert to `StableFunctionMap::at` to verify `FunctionHash` exists.


  Commit: f801b6f67ea896d6e4d2de38bce9a79689ceb254
      https://github.com/llvm/llvm-project/commit/f801b6f67ea896d6e4d2de38bce9a79689ceb254
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/ptrtoaddr.ll
    M llvm/test/Transforms/InstCombine/sub-gep.ll

  Log Message:
  -----------
  [InstCombine] Add support for ptrtoaddr in pointer difference folds (#164428)

This adds support for folding `ptrtoaddr(p2) - ptrtoaddr(p)` pointer
subtractions. We can treat ptrtoaddr the same as ptrtoint as the
transform is truncation safe anyway (and in fact supports explicit
truncation as well).

The only interesting case is the subtraction of zext of ptrtoaddr. For
this transform it's important that the address bits are not truncated --
and if any pointer bits are truncated, that the truncation is consistent
for both operands. I've explicitly spelled out the three different cases
for this, which also fixes a miscompile in the existing ptrtoint fold.


  Commit: 4f4bee428d2269808f2ef5f97f3482382d18945d
      https://github.com/llvm/llvm-project/commit/4f4bee428d2269808f2ef5f97f3482382d18945d
  Author: Marco Elver <elver at google.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/SemaCXX/alloc-token.cpp

  Log Message:
  -----------
  [Clang][Sema] Add __builtin_infer_alloc_token() declaration and semantic checks (#163638)

Introduce the `__builtin_infer_alloc_token()` builtin declaration and
adds the necessary semantic checks in Sema.


  Commit: 7389dbcd20305bdaa65f29641fb5238ca668958d
      https://github.com/llvm/llvm-project/commit/7389dbcd20305bdaa65f29641fb5238ca668958d
  Author: Marco Elver <elver at google.com>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst
    M clang/lib/Sema/SemaConcept.cpp
    M clang/test/SemaTemplate/concepts.cpp
    M llvm/lib/CGData/CodeGenDataReader.cpp
    M llvm/lib/CGData/StableFunctionMap.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/ptrtoaddr.ll
    M llvm/test/Transforms/InstCombine/sub-gep.ll

  Log Message:
  -----------
  rebase

Created using spr 1.3.8-beta.1


Compare: https://github.com/llvm/llvm-project/compare/8f2c71c960d0...7389dbcd2030

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