[all-commits] [llvm/llvm-project] 38832a: [clang] fix obtaining EnumDecl for UsingEnumDecl (...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri Aug 29 18:07:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38832a8443d76ce96b7e893a80538b9c3515a22a
      https://github.com/llvm/llvm-project/commit/38832a8443d76ce96b7e893a80538b9c3515a22a
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-08-30 (Sat, 30 Aug 2025)

  Changed paths:
    M clang/include/clang/AST/DeclCXX.h
    M clang/test/SemaTemplate/using-decl.cpp

  Log Message:
  -----------
  [clang] fix obtaining EnumDecl for UsingEnumDecl (#156127)

Use the castAs acessor for the type for a UsingEnumDecl, as it can be
sugar for an EnumType.

Fixes a regression reported here:
https://github.com/llvm/llvm-project/pull/155313#issuecomment-3238482327

Since this regression was never released, there are no release notes.



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