Skip to content

Commit dfd5a64

Browse files
committed
[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
1 parent 32c0048 commit dfd5a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
342342
if (!this->emitSetLocal(PT_Ptr, *SubExprOffset, CE))
343343
return false;
344344

345-
PrimType SourceElemT = *classifyComplexElementType(SubExpr->getType());
345+
PrimType SourceElemT = classifyComplexElementType(SubExpr->getType());
346346
QualType DestElemType =
347347
CE->getType()->getAs<ComplexType>()->getElementType();
348348
PrimType DestElemT = classifyPrim(DestElemType);

0 commit comments

Comments
 (0)