================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to