[clang] [clang][SemaCXX] Fix crash caused by unresolved overloaded function type when using `__builtin_bit_cast` (PR #200574)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 1 04:18:02 PDT 2026
================
@@ -439,6 +439,13 @@ ExprResult Sema::ActOnBuiltinBitCastExpr(SourceLocation KWLoc, Declarator &D,
ExprResult Sema::BuildBuiltinBitCastExpr(SourceLocation KWLoc,
TypeSourceInfo *TSI, Expr *Operand,
SourceLocation RParenLoc) {
+ if (Operand && Operand->getType()->isPlaceholderType()) {
----------------
cor3ntin wrote:
```suggestion
if (Operand->hasPlaceholderType()) {
```
https://github.com/llvm/llvm-project/pull/200574
More information about the cfe-commits
mailing list