[clang] [clang][CodeGen] Fix invalid bitcast in InitCatchParam for non-zero address space pointers (PR #224680)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 22:06:08 PDT 2026
================
@@ -17504,6 +17504,13 @@ VarDecl *Sema::BuildExceptionDeclaration(Scope *S, TypeSourceInfo *TInfo,
Invalid = true;
}
+ // reject trowing of pointers with non-default address space cause runtimes
+ // dosn't have support for cross-address-space conversions yet;
+ if (!Invalid && Mode == 1 && BaseType.getAddressSpace() != LangAS::Default) {
----------------
im-lunex wrote:
addressed
https://github.com/llvm/llvm-project/pull/224680
More information about the cfe-commits
mailing list