[clang] [clang][CodeGen] Make `UnqualPtrTy` truly unqualified (PR #94388)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 15:08:02 PDT 2024
================
@@ -4656,14 +4656,14 @@ static void InitCatchParam(CodeGenFunction &CGF,
auto catchRD = CatchType->getAsCXXRecordDecl();
CharUnits caughtExnAlignment = CGF.CGM.getClassPointerAlignment(catchRD);
- llvm::Type *PtrTy = CGF.UnqualPtrTy; // addrspace 0 ok
----------------
efriedma-quic wrote:
This should be a pointer to a heap-allocated object.
In any case, we shouldn't need to cast the return value of __cxa_begin_catch to a different address-space; we can just drop the bitcasts.
https://github.com/llvm/llvm-project/pull/94388
More information about the cfe-commits
mailing list