[clang] [clang][Interp] Implement integral->complex casts (PR #75590)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 18 02:22:54 PST 2023
================
@@ -283,6 +283,28 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
case CK_ToVoid:
return discard(SubExpr);
+ case CK_IntegralRealToComplex:
+ case CK_FloatingRealToComplex: {
+ // We're creating a complex value here, so need to
----------------
cor3ntin wrote:
```suggestion
// We're creating a complex value here, so we need to
```
https://github.com/llvm/llvm-project/pull/75590
More information about the cfe-commits
mailing list