[clang] [clang][MS ABI] Use image-relative throw info on 32-bit Arm (PR #240571)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 9 18:14:31 PST 2026
================
@@ -4502,12 +4528,12 @@ llvm::GlobalVariable *MicrosoftCXXABI::getThrowInfo(QualType T) {
CleanupFn = CGM.getAddrOfCXXStructor(GlobalDecl(DtorD, Dtor_Complete));
// This is unused as far as we can tell, initialize it to null.
llvm::Constant *ForwardCompat =
- getImageRelativeConstant(llvm::Constant::getNullValue(CGM.Int8PtrTy));
- llvm::Constant *PointerToCatchableTypes = getImageRelativeConstant(CTA);
+ getThrowInfoRelativeConstant(llvm::Constant::getNullValue(CGM.Int8PtrTy));
----------------
hamed7ir wrote:
Fixed: ForwardCompat, and CleanupFn and CopyCtor when there is none, are now a null of the field's type, so nothing passes null to the helper anymore. I also removed its null special case, which is what made this work before.
https://github.com/llvm/llvm-project/pull/240571
More information about the cfe-commits
mailing list