[clang] Desugar complex element types for promoted complex division (PR #168943)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 11:02:41 PST 2025
================
@@ -10726,7 +10726,7 @@ static void DetectPrecisionLossInComplexDivision(Sema &S, QualType DivisorTy,
if (!CT)
return;
- QualType ElementType = CT->getElementType();
+ QualType ElementType = CT->getElementType().getCanonicalType();
----------------
efriedma-quic wrote:
Should we just do this in GetHigherPrecisionFPType()?
I guess it doesn't matter that much either way, since it only has two callers.
https://github.com/llvm/llvm-project/pull/168943
More information about the cfe-commits
mailing list