[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
This commit is contained in:
Timm Bäder 2024-01-31 16:59:55 +01:00
parent 32c00485f1
commit dfd5a64da4

View File

@ -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);