[all-commits] [llvm/llvm-project] f8fab2: [Clang][Sema] Fix type of enumerators in incomplet...
Kupa-Martin via All-commits
all-commits at lists.llvm.org
Tue Mar 12 07:21:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f8fab2126ffab713f4ab4619360b6941be6d4e35
https://github.com/llvm/llvm-project/commit/f8fab2126ffab713f4ab4619360b6941be6d4e35
Author: Kupa-Martin <84517188+Kupa-Martin at users.noreply.github.com>
Date: 2024-03-12 (Tue, 12 Mar 2024)
Changed paths:
M clang/lib/AST/Expr.cpp
A clang/test/Sema/enum-constant-type.cpp
M clang/test/Sema/warn-compare-enum-types-mismatch.c
Log Message:
-----------
[Clang][Sema] Fix type of enumerators in incomplete enumerations (#84068)
Enumerators dont have the type of their enumeration before the closing
brace. In these cases Expr::getEnumCoercedType() incorrectly returned
the enumeration type.
Introduced in PR #81418
Fixes #84712
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