[all-commits] [llvm/llvm-project] 1ddfb9: [Sema] Fix crash in __builtin_dump_struct with -We...
Krisitan Erik Olsen via All-commits
all-commits at lists.llvm.org
Thu Jul 30 21:19:24 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1ddfb94fa6c645af9e10ad4946d9b7aea3c46454
https://github.com/llvm/llvm-project/commit/1ddfb94fa6c645af9e10ad4946d9b7aea3c46454
Author: Krisitan Erik Olsen <kristian.erik at outlook.com>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M clang/docs/ReleaseNotes.md
M clang/lib/Sema/SemaChecking.cpp
A clang/test/CodeGenCXX/GH211943.cpp
Log Message:
-----------
[Sema] Fix crash in __builtin_dump_struct with -Werror -Wformat-pedantic (#212377)
`DiagnosticErrorTrap::hasErrorOccurred()` treats warnings promoted to
errors by `-Werror` as real errors, causing `BuiltinDumpStructGenerator`
to bail out before building the `PseudoObjectExpr` wrapper. CodeGen then
encounters the untransformed `CallExpr` with a placeholder builtin type
and hits `llvm_unreachable` in `CodeGenTypes::ConvertType`.
Use `hasUnrecoverableErrorOccurred()` instead, which ignores `-Werror`
promoted warnings and only bails on genuine compilation errors.
Fixes #211943
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