================ @@ -2210,7 +2219,11 @@ CGObjCGNU::CGObjCGNU(CodeGenModule &cgm, unsigned runtimeABIVersion, // void objc_exception_throw(id); ExceptionThrowFn.init(&CGM, "objc_exception_throw", VoidTy, IdTy); - ExceptionReThrowFn.init(&CGM, "objc_exception_throw", VoidTy, IdTy); + if (usesCxxExceptions) { + ExceptionReThrowFn.init(&CGM, "objc_exception_rethrow", VoidTy, IdTy); ---------------- compnerd wrote:
I would say that a ternary to select between the exception model and identify the name would be better as you are just selecting the label. https://github.com/llvm/llvm-project/pull/77255 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits