[clang] Objective C: use C++ exceptions on MinGW+GNUstep (PR #77255)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 8 17:12:42 PST 2024
================
@@ -210,7 +212,10 @@ static const EHPersonality &getObjCXXPersonality(const TargetInfo &Target,
return getObjCPersonality(Target, L);
case ObjCRuntime::GNUstep:
- return EHPersonality::GNU_ObjCXX;
+ if (Target.getTriple().isOSCygMing())
+ return EHPersonality::GNU_CPlusPlus_SEH;
+ else
+ return EHPersonality::GNU_ObjCXX;
----------------
compnerd wrote:
This might be nicer as a ternary return.
https://github.com/llvm/llvm-project/pull/77255
More information about the cfe-commits
mailing list