[all-commits] [llvm/llvm-project] cd132d: [clang] fix(85447): clang 18.1.0 crashes in clang:...
Oleksandr T. via All-commits
all-commits at lists.llvm.org
Thu May 2 00:23:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cd132dcbeb0fc79fd657bd5e0a8e9244c3fb5da6
https://github.com/llvm/llvm-project/commit/cd132dcbeb0fc79fd657bd5e0a8e9244c3fb5da6
Author: Oleksandr T <oleksandr.tarasiuk at outlook.com>
Date: 2024-05-02 (Thu, 02 May 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDecl.cpp
A clang/test/Sema/incomplete-struct-decl.cpp
Log Message:
-----------
[clang] fix(85447): clang 18.1.0 crashes in clang::ASTContext::getTypeInfoImpl (#89850)
Fixes #85447
---
This PR resolves a crash in `ActOnUninitializedDecl` due to an oversight
in updating the `isInvalidDecl` state before invocation. The crash
occurs due to a missing invocation of `setInvalidDecl()` for an invalid
`Anon` declaration. To address this issue, the `setInvalidDecl()` method
is now properly invoked to mark the `Anon` declaration as invalid before
running `ActOnUninitializedDecl()`.
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