[clang] [clang][Interp] Support __real/__imag on primitives (PR #75485)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 18 02:29:21 PST 2023
================
@@ -2761,6 +2761,8 @@ bool ByteCodeExprGen<Emitter>::VisitUnaryOperator(const UnaryOperator *E) {
return false;
return DiscardResult ? this->emitPop(*T, E) : this->emitComp(*T, E);
case UO_Real: { // __real x
+ if (T)
+ return this->delegate(SubExpr);
assert(!T);
----------------
cor3ntin wrote:
Not sure the assert adds anything now
https://github.com/llvm/llvm-project/pull/75485
More information about the cfe-commits
mailing list