[clang] [clang][CodeGen] Make `UnqualPtrTy` truly unqualified (PR #94388)

Alexander Richardson via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 5 10:45:43 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
----------------
arichardson wrote:

I am not convinced this is actually correct, it's been a long time since I looked at C++ exception handling, but I would have assumed this to either be a stack variable or a global?

https://github.com/llvm/llvm-project/pull/94388


More information about the cfe-commits mailing list