[PATCH] D102343: [clang][patch][FPEnv} Initialization of C++ globals not strictfp aware

Melanie Blower via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 12 11:13:05 PDT 2021


mibintc added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:700
   CurCodeDecl = D;
-  if (const auto *FD = dyn_cast_or_null<FunctionDecl>(D))
-    if (FD->usesSEHTry())
-      CurSEHParent = FD;
+  const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
+  if (FD && FD->usesSEHTry())
----------------
there's a whole bunch of places in this func that creates FD, I changed them into a single place. hope that's OK, or i could pull it out as a pre-patch if you prefer


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102343/new/

https://reviews.llvm.org/D102343



More information about the cfe-commits mailing list