[clang] The pragma STDC CX_LIMITED_RANGE ON should have precedence. (PR #98520)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 07:49:56 PDT 2024


================
@@ -347,6 +355,8 @@ class ComplexExprEmitter
 #define HANDLEBINOP(OP)                                                        \
   ComplexPairTy VisitBin##OP(const BinaryOperator *E) {                        \
     QualType promotionTy = getPromotionType(                                   \
+        (E->hasStoredFPFeatures() ? E->getStoredFPFeatures()                   \
----------------
AaronBallman wrote:

This pattern comes up often enough, I wonder if we should add `getStoredFPFeaturesOrDefault()` that does this dance for us?

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


More information about the cfe-commits mailing list