[clang] Desugar complex element types for promoted complex division (PR #168943)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 20 13:52:53 PST 2025


================
@@ -320,7 +320,8 @@ class ComplexExprEmitter
   QualType getPromotionType(FPOptionsOverride Features, QualType Ty,
                             bool IsComplexDivisor) {
     if (auto *CT = Ty->getAs<ComplexType>()) {
-      QualType ElementType = CT->getElementType();
----------------
mizvekov wrote:

Why not just use the canonical type?

https://github.com/llvm/llvm-project/pull/168943


More information about the cfe-commits mailing list