[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:41 PST 2024
================
@@ -3993,7 +4009,9 @@ void CGObjCGNU::EmitThrowStmt(CodeGenFunction &CGF,
ExceptionAsObject = CGF.ObjCEHValueStack.back();
isRethrow = true;
}
- if (isRethrow && usesSEHExceptions) {
+ if (isRethrow &&
+ (usesSEHExceptions || (CGM.getTarget().getTriple().isOSCygMing() &&
+ isRuntime(ObjCRuntime::GNUstep, 2)))) {
----------------
compnerd wrote:
Does it make sense to introduce a `usesCxxExceptions` variable?
https://github.com/llvm/llvm-project/pull/77255
More information about the cfe-commits
mailing list