[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 16 09:38:21 PDT 2025
================
@@ -44,6 +68,15 @@ void ComplexExprEmitter::emitStoreOfComplex(mlir::Location loc, mlir::Value val,
builder.createStore(loc, val, destAddr);
}
+mlir::Value ComplexExprEmitter::VisitCallExpr(const CallExpr *e) {
+ if (e->getCallReturnType(cgf.getContext())->isReferenceType())
+ return emitLoadOfLValue(e);
----------------
andykaylor wrote:
Do you know what sort of source construct gets us here? A test case for this would be useful.
https://github.com/llvm/llvm-project/pull/144225
More information about the cfe-commits
mailing list