=?utf-8?q?Mészáros?= Gergely <maetv...@gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/131...@github.com>


================
@@ -10591,6 +10591,45 @@ static void checkArithmeticNull(Sema &S, ExprResult 
&LHS, ExprResult &RHS,
       << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
 }
 
+static void DetectPrecisionLossInComplexDivision(Sema &S, QualType DivisorTy,
+                                                 SourceLocation OpLoc) {
+  // If the divisor is real, then this is real/real or complex/real division.
+  // Either way there can be no precision loss.
+  auto *CT = DivisorTy->getAs<ComplexType>();
+  if (!CT)
+    return;
----------------
zahiraam wrote:

But that's only true if the target doesn't support higher precision types 
right? At this point this is not known.

https://github.com/llvm/llvm-project/pull/131477
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to