[clang] [clang] Use current rounding mode for float inc/dec (PR #73770)

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 00:58:23 PST 2023


================
@@ -4623,10 +4623,12 @@ struct IncDecSubobjectHandler {
     if (Old) *Old = APValue(Value);
 
     APFloat One(Value.getSemantics(), 1);
+    llvm::RoundingMode RM =
+        E->getFPFeaturesInEffect(Info.Ctx.getLangOpts()).getRoundingMode();
----------------
spavloff wrote:

Yes, it should. Thank you!

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


More information about the cfe-commits mailing list