[PATCH] D47862: [CodeGen] Always use MSVC personality for windows-msvc targets

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 7 15:43:34 PDT 2018


rnk added inline comments.


================
Comment at: lib/CodeGen/CGException.cpp:134-135
   const llvm::Triple &T = Target.getTriple();
+  if (T.isWindowsMSVCEnvironment())
+    return EHPersonality::MSVC_CxxFrameHandler3;
+
----------------
I guess previously we carefully arranged to go to whatever the regular objc personality would be, but we're not doing that now with funclet windows eh.
Maybe we could drastically simplify this by checking for an msvc environment and seh before checking each language?


Repository:
  rC Clang

https://reviews.llvm.org/D47862





More information about the cfe-commits mailing list