[clang] [CIR] Apply FP constraints to global initializers (PR #213776)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 16:51:38 PDT 2026


================
@@ -352,6 +352,18 @@ void CIRGenModule::emitCXXGlobalVarDeclInit(const VarDecl *varDecl,
   CIRGenFunction::SourceLocRAIIObject fnLoc{cgf,
                                             getLoc(varDecl->getLocation())};
 
+  // Set up the constrained FP environment for the dynamic initializer.
+  llvm::RoundingMode rm = getLangOpts().getDefaultRoundingMode();
----------------
erichkeane wrote:

Ok, good enough for now then I guess.

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


More information about the cfe-commits mailing list