We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e96242b commit d38c61aCopy full SHA for d38c61a
clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -291,9 +291,6 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
291
case CK_FloatingComplexToReal:
292
return this->emitComplexReal(SubExpr);
293
294
- case CK_ToVoid:
295
- return discard(SubExpr);
296
-
297
case CK_IntegralRealToComplex:
298
case CK_FloatingRealToComplex: {
299
// We're creating a complex value here, so we need to
@@ -317,6 +314,9 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
317
314
return this->emitInitElem(T, 1, SubExpr);
318
315
}
319
316
+ case CK_ToVoid:
+ return discard(SubExpr);
+
320
default:
321
assert(false && "Cast not implemented");
322
0 commit comments