From dfd5a64da4b76db1ec557ff31e1d64dd7e9eebe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 31 Jan 2024 16:59:55 +0100 Subject: [PATCH] [clang][Interp] Remove wrong * operator classifyComplexElementType used to return a std::optional, seems like this was left in a PR and not re-tested. This broke build bots, e.g. https://lab.llvm.org/buildbot/#/builders/68/builds/67930 --- clang/lib/AST/Interp/ByteCodeExprGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index c4598151f95d..d2d47e60b2c4 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -342,7 +342,7 @@ bool ByteCodeExprGen::VisitCastExpr(const CastExpr *CE) { if (!this->emitSetLocal(PT_Ptr, *SubExprOffset, CE)) return false; - PrimType SourceElemT = *classifyComplexElementType(SubExpr->getType()); + PrimType SourceElemT = classifyComplexElementType(SubExpr->getType()); QualType DestElemType = CE->getType()->getAs()->getElementType(); PrimType DestElemT = classifyPrim(DestElemType);