[all-commits] [llvm/llvm-project] de2fad: [Clang] Fix dependent expression handling for assu...

Younan Zhang via All-commits all-commits at lists.llvm.org
Mon Nov 11 17:45:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de2fad32513f7420988df1cf99aff90e0a067469
      https://github.com/llvm/llvm-project/commit/de2fad32513f7420988df1cf99aff90e0a067469
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2024-11-12 (Tue, 12 Nov 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/SemaCXX/cxx23-assume.cpp

  Log Message:
  -----------
  [Clang] Fix dependent expression handling for assumptions (#115646)

The function definition instantiation assumes any declarations used
inside are already transformed before transforming the body, so we need
to preserve the transformed expression of CXXAssumeAttr even if it is
not a constant expression. Moreover, the full expression of the
assumption should also entail a potential lambda capture transformation,
hence the call to ActOnFinishFullExpr() after TransformExpr().

Fixes #114787



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