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

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 21 05:43:10 PST 2025


================
@@ -10726,13 +10726,13 @@ static void DetectPrecisionLossInComplexDivision(Sema &S, QualType DivisorTy,
   if (!CT)
     return;
 
-  QualType ElementType = CT->getElementType();
+  ASTContext &Ctx = S.getASTContext();
+  QualType ElementType = CT->getElementType().getDesugaredType(Ctx);
----------------
zahiraam wrote:

Done.

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


More information about the cfe-commits mailing list