Author: Timm Bäder Date: 2024-01-31T17:00:42+01:00 New Revision: dfd5a64da4b76db1ec557ff31e1d64dd7e9eebe5
URL: https://github.com/llvm/llvm-project/commit/dfd5a64da4b76db1ec557ff31e1d64dd7e9eebe5 DIFF: https://github.com/llvm/llvm-project/commit/dfd5a64da4b76db1ec557ff31e1d64dd7e9eebe5.diff LOG: [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 Added: Modified: clang/lib/AST/Interp/ByteCodeExprGen.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index c4598151f95d6..d2d47e60b2c4d 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -342,7 +342,7 @@ bool ByteCodeExprGen<Emitter>::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<ComplexType>()->getElementType(); PrimType DestElemT = classifyPrim(DestElemType); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits